You need to sign in to do that
Don't have an account?
New to Chatter API - OAuthTokens - Android development question
Hi There,
I have been playing around with the SDK and have managed to get the RestClient up and running without any issues so I can query Salesforce directly quite easily.
I now want to try and send / receive chatter posts using the REST API for chatter but with no success. So to ask what may well be a obvious question, in relation to the line:
OAuthTokens myTokens=globalState.getAccessTokens();
Where is the OAuthTokens class and how does the globalState object get created. I cannot seem to figure this out but I am sure it is something simple. Even when I am already authenticated through the RestClient I cannot seem to get a token object from the connection.
I can do this through java just using http calls and a browser but have struggled on Android.
Any assistance is greatly appreciated.
Perhaps this will help:
http://wiki.developerforce.com/page/Chatter_API
There are some sample app links toward the bottom of the page. There's one for iOS and one for Android.