• mambonee
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies

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.