cURL not working for API?
roopesh says:
I am trying to develop an app to create tasks (specifically using Entourage). I am working in AppleScript.
When I do an open location to the api (currently just doing an rtm.auth.getFrob), my browser pops open and I see the XML response, it is successful.
However, when I try to use curl (do shell script "curl ...") I get back a message from RTM saying the api_key is invalid.
I'm using the exact same request for both calls. I created a requestTxt variable and use the variable for both calls.
Anyone seen this before?
Thankss
When I do an open location to the api (currently just doing an rtm.auth.getFrob), my browser pops open and I see the XML response, it is successful.
However, when I try to use curl (do shell script "curl ...") I get back a message from RTM saying the api_key is invalid.
I'm using the exact same request for both calls. I created a requestTxt variable and use the variable for both calls.
Anyone seen this before?
Thankss
roopesh says:
Got it figured out, had to escape the ampersand (&) signs with a backslash (\) or enclose the entire request in quotes.