function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mamboneemambonee 

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.

 

Thomas CookThomas Cook

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.