Hi Max, where do I actually set it? I am not sure about that....
Hi Max, where do I actually set it? I am not sure about that....
Hi Max, can you post a screenshot for the above? I just need to know where to set the Authorization header
Set the value in Test Connection, for Authorization header.
I am getting this when running the test:
URL: http://api.mob1.stackmob.com/messages
Method: get
Data Type: json
Content Type:
Security Context: 0
Request header parameters: Accept=application%2Fvnd.stackmob%2Bjson%3B%20version%3D0
Request body parameters: Authorization=OAuth%20realm%3D%22%22%2C%20oauth_signature%3D%22ltSkPSEsJLcjYdH4%252FVQ0mIQiw1I%253D%22%2C%20oauth_nonce%3D%2258467912665650780%22%2C%20oauth_signature_method%3D%22HMAC-SHA1%22%2C%20oauth_consumer_key%3D%2205ed905a-4a3b-4b5f-9a74-baf00b07bb1d%22%2C%20oauth_timestamp%3D%221345478702%22
Error message:
GET http://api.mob1.stackmob.com/messages? returned a response status of 401 Unauthorized
Server response:
{
"error": "Invalid OAuth credentials or signature: Key not provided"
}
I'm not sure why it's not working...the basic idea is to send the same request via Test as you send from the page. It works from the page, and you can create the services' response by copy & paste.
Hi Max,
I found the reason this is happening. The JavaScript in the example is using OAuth 1.0 but StackMob has switched over to OAuth 2.0.
We are planning to use some other APIs in our production app and I am worried that tiggzi will not support OAuth 2.0. Do you know if this is the case? Will it support OAuth 2.0?
Are you able to display the list of messages when you running the actual app (not from Test)?