Passing in headers to queries is IOS and Android SDK

23 views
Skip to first unread message

Aaron Saunders

unread,
Dec 27, 2011, 4:52:45 PM12/27/11
to StackMob
it is supported in the REST API, can we use the same approach when
using Android and IOS SDK

Jordan West

unread,
Dec 27, 2011, 5:03:18 PM12/27/11
to Aaron Saunders, StackMob
Hi Aaron,

What headers are you talking about specifically? For any StackMob specific headers (e.g. Range, X-StackMob-OrderBy, X-StackMob-CascadeDelete, etc) the SDK has convenience methods for adding those to a request. In iOS, for example, this is made available via the StackMob singleton and use of the StackMobQuery class (the singleton generates a request w/ the proper headers based on the passed in StackMobQuery instance). I'm assuming you are looking into this as part of your work on the Titanium Module, perhaps you could explain in a little more detail what you are trying to expose in your module and I can help point you in the right direction.

Jordan

On Tue, Dec 27, 2011 at 1:52 PM, Aaron Saunders <aa...@clearlyinnovative.com> wrote:
it is supported in the REST API, can we use the same approach when
using Android and IOS SDK

--
You received this message because you are subscribed to the Google Groups "StackMob" group.
To post to this group, send email to stac...@googlegroups.com.
To unsubscribe from this group, send email to stackmob+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/stackmob?hl=en.


Reply all
Reply to author
Forward
0 new messages