Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Requesting url inside vs outside the browser
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eric Foster  
View profile  
 More options Oct 14 2012, 5:14 am
From: Eric Foster <eric.fost...@gmail.com>
Date: Sun, 14 Oct 2012 02:14:44 -0700 (PDT)
Local: Sun, Oct 14 2012 5:14 am
Subject: Requesting url inside vs outside the browser

Hi,

To start, I am a coding noob. I'm trying to make a Producteev extension for
my favorite app launcher, Alfred <http://www.alfredapp.com/>. I'm starting
with a php file that I execute through the command line using 'php -f
myscript.php' because that's how Alfred extensions execute script files.

Anyway, using this method, I'm able to successful obtain a token but when I
try to perform something more advanced like curling in the php file or
through the command line the url
 '/tasks/my_tasks.xml?api_key=11111111api_sig=111111', I get a 403 -
Forbidden error and the message "Wrong api_key or signature" from
Producteev. What's odd is when I open the same url in my browser, it works.

I've attached my code. Thanks in advance.

  myscript.php
2K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
aric lasry  
View profile  
 More options Oct 15 2012, 1:21 pm
From: aric lasry <lasry.a...@gmail.com>
Date: Mon, 15 Oct 2012 13:21:45 -0400
Local: Mon, Oct 15 2012 1:21 pm
Subject: Re: Requesting url inside vs outside the browser

Hi.
I just took a look at your script and I see that you are missing the token
parameter in your request.

Let me know if works. Thanks.

--
Aric LASRY | Co-founder & Lead dev @Producteev.com | 00 (1) 646 705 1274 |
New York City

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Foster  
View profile  
 More options Oct 17 2012, 2:29 pm
From: Eric Foster <eric.fost...@gmail.com>
Date: Wed, 17 Oct 2012 11:29:16 -0700 (PDT)
Local: Wed, Oct 17 2012 2:29 pm
Subject: Re: Requesting url inside vs outside the browser

Hi Aric,

Thanks for getting back to me. I tried both with and without the token
appended to the url and with and without a token in the params array used
to generate the md5 sig. Nothing seems to work. I did notice that I've
been returning the same token form the API since I started working on this
project last week.

Is that normal?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »