30.03.2014 Views

Database.com Chatter REST API Developer's Guide - Salesforce.com

Database.com Chatter REST API Developer's Guide - Salesforce.com

Database.com Chatter REST API Developer's Guide - Salesforce.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Chatter</strong> <strong>API</strong>: How do I. . .<br />

HTTP method:<br />

Request body:<br />

Request parameter:<br />

Request body example:<br />

GET<br />

NA<br />

exclude and include<br />

Use the exclude and include query parameters to filter a response body when making a<br />

request. The query value is a bar (|) delimited list of properties. URL encode the bar as %7C.<br />

Use a forward slash (/) before each property name.<br />

The following News Feed URL resource:<br />

/chatter/users/me?include=/aboutMe%7C/address<br />

Returns the following for the Feed response body:<br />

{<br />

"aboutMe": "<strong>Salesforce</strong> Administrator and Citizen Developer",<br />

"address": {<br />

"city": "San Francisco",<br />

"country": "US",<br />

"formattedAddress": "1 Market St\nSan Francisco, CA<br />

94105\nUS",<br />

"state": "CA",<br />

"street": "1 Market St",<br />

"zip": "94105"<br />

}<br />

}<br />

For a detailed list of rules and examples, see Response Body Filters on page 258.<br />

Returns:<br />

A filtered response body<br />

Post feed item<br />

Resource:<br />

HTTP method:<br />

Request body:<br />

Request parameter:<br />

Use one of the feed resources, such as /chatter/feeds/news/userId/feed-items.<br />

POST<br />

Feed Item Input<br />

text<br />

29

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!