Rtoluchuri
7 years agoGuide
How to post attachments to a message using OAuth Access Token
Hi All,
We tried making V1 API call to post attachments for a message by using the OAuth access token and we are unable to post it due to an internal server error. Following is the java code we are using.
HttpPost post = new HttpPost( "https://api.stage.lithium.com/community/v1/community/boards/id/Board/messages/post?restapi.response_format=json"); post.addHeader("client-id", "xxxxx"); post.addHeader("Authorization", "Bearer xxxx"); post.setHeader("Content-type", "multipart/form-data"); )
could any one help me on this.
Thank you,
Ravindra.