Page 3 of 3

Mapping response to mobile list item problem

Posted: Mon Aug 20, 2012 8:29 am
by Rupert Marx

Hi Max, where do I actually set it? I am not sure about that....


Mapping response to mobile list item problem

Posted: Mon Aug 20, 2012 3:18 pm
by Rupert Marx

Hi Max, can you post a screenshot for the above? I just need to know where to set the Authorization header


Mapping response to mobile list item problem

Posted: Mon Aug 20, 2012 3:46 pm
by maxkatz

Set the value in Test Connection, for Authorization header.


Mapping response to mobile list item problem

Posted: Mon Aug 20, 2012 4:06 pm
by Rupert Marx

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"
}


Mapping response to mobile list item problem

Posted: Mon Aug 20, 2012 4:12 pm
by maxkatz

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.


Mapping response to mobile list item problem

Posted: Tue Aug 21, 2012 8:40 am
by Rupert Marx

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?


Mapping response to mobile list item problem

Posted: Tue Aug 21, 2012 5:42 pm
by maxkatz

Are you able to display the list of messages when you running the actual app (not from Test)?