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
jsymonds24jsymonds24 

connect and update Community using Oauth

We have a Customer Community based on the Napili template. We need to reset values on a field in Topic records which Salesforce support says must be done using the Chatter API.  I tried to do this using cURL and username-password OAuth authentication, but to connect to a Community requires using the  OAuth Web server or user-agent workflows.  These appear to require creating an application to manage the process of user authentication and handling of the token to use for my update requests.  Does anyone have experience with this or know where I can find better detail than the Salesforce documentation on how to accomplish this?
jody_blyjody_bly
Which Chatter REST API resource are you using? 
jsymonds24jsymonds24
Hi Jody, That you for your response. I’m not sure what you’re asking, but I am referencing the instructions in the Chatter REST API Developer’s Guide. In the Chatter REST API Quick Start section, I am trying to implement the instructions in the Connecting to Salesforce Communities topic. As I mentioned below, I am trying to update a field in Topic records. Thanks & Regards, Jeff
jody_blyjody_bly
Hi Jeff,

You should be able to use the username/password OAuth flow from cURL:
https://help.salesforce.com/apex/HTViewHelpDoc?id=remoteaccess_oauth_username_password_flow.htm&language=en#up_obtain_access_token.

This is the Chatter REST API resource that adds and removes topics from records:
http://www.salesforce.com/us/developer/docs/chatterapipre/Content/connect_resources_records_topics.htm

Here's another forum thread that should be useful:
https://developer.salesforce.com/forums/ForumsMain?id=906F00000009CYaIAM