You need to sign in to do that
Don't have an account?
jsymonds24
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?
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