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
objectuserobjectuser 

How to create feed in group or user chatter using post request rest api ??

i want to create chatter feed for user through java using rest api ??
how can i do this ??

vbsvbs

@objectuser - Have you understood how to access the Salesforce API through REST? Chatter REST API is no different. A basic block would be:

1. Get the Enterprise WSDL from Salesforce org

2. Generate a JAR for the WSDL using the WSC (Web Services Connector). This is available for download.

3. Import the JAR and the WSC jar into your Java project.

4. Use OAUTH or SessionId based connection to Salesforce.

After the above is complete you can access the Chatter REST API like any other REST API using the HTTP classes. Here is a quick brief on the Chatter REST API

http://wiki.developerforce.com/page/Getting_Started_with_the_Chatter_REST_API