• gdsimz
  • NEWBIE
  • 0 Points
  • Member since 2012

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

Hi There,

 

Attempting to get chatter feeds, messages, etc. and using:

 

..

public void showCurrentUserNewsFeed()
{
fetchChatterFeed(true, "/services/data/v22.0/chatter/feeds/news/me");
}

public void showUserNewsFeed(String userId)
{
fetchChatterFeed(true, "/services/data/v22.0/chatter/feeds/news/"+userId);
}

..

 

 

I can verify I am getting successful authentication because my userid derives from the token as expected.  However none of the example given URLs will return any information from the authenitcated user.

 

This is the validation being used:

 

..

HttpGet get = new HttpGet(url);

get.setHeader("Authorization", "OAuth " + loginResult.getAccessToken());

DefaultHttpClient client = new DefaultHttpClient();
HttpResponse resp = client.execute(get);

if (resp.getStatusLine().getStatusCode() != 200)
{
if (progress != null)
progress.cancel();

errorMsg = "Could not fetch Posts feed: "+url+" status code: "+resp.getStatusLine().getStatusCode();
showDialog(1);
return;
}
String result = EntityUtils.toString(resp.getEntity());

..

 

 instance_url/services/data/v22.0/chatter/feeds/news/me is returning error 404.

 

Thanks for any assistance in advance,

 

Geoff-

  • September 26, 2012
  • Like
  • 0

Hi all,

 

I am new to the chatter development scene and our company uses Chatter for social collaboration. 

 

We are exploring the idea of bringing our existing profiles, entries, and mentions into a .net web application using the authentication session to bring in custom business usage.

 

I am wanting to basically use the existing organization email domain while appending a devleoper account however when I register for a development account, my email is already taken by my prior registration.

 

Looking to get started with development and looking for some direction as to incoporating the development use with the existing organization so what account do I need to create or can I upgrade the existing chatter account?

 

Thanks,

 

Geoff

  • September 06, 2012
  • Like
  • 0

Hi There,

 

Attempting to get chatter feeds, messages, etc. and using:

 

..

public void showCurrentUserNewsFeed()
{
fetchChatterFeed(true, "/services/data/v22.0/chatter/feeds/news/me");
}

public void showUserNewsFeed(String userId)
{
fetchChatterFeed(true, "/services/data/v22.0/chatter/feeds/news/"+userId);
}

..

 

 

I can verify I am getting successful authentication because my userid derives from the token as expected.  However none of the example given URLs will return any information from the authenitcated user.

 

This is the validation being used:

 

..

HttpGet get = new HttpGet(url);

get.setHeader("Authorization", "OAuth " + loginResult.getAccessToken());

DefaultHttpClient client = new DefaultHttpClient();
HttpResponse resp = client.execute(get);

if (resp.getStatusLine().getStatusCode() != 200)
{
if (progress != null)
progress.cancel();

errorMsg = "Could not fetch Posts feed: "+url+" status code: "+resp.getStatusLine().getStatusCode();
showDialog(1);
return;
}
String result = EntityUtils.toString(resp.getEntity());

..

 

 instance_url/services/data/v22.0/chatter/feeds/news/me is returning error 404.

 

Thanks for any assistance in advance,

 

Geoff-

  • September 26, 2012
  • Like
  • 0