JAVA SDK for calling Khoros Rest APIS
- 3 years ago
Hi prasadu507, we only have REST APIs. However, not a Java SDK that encapsulates that, calling a REST API with Java is easy.
I will be sending you a link through a Private Message to a video showing how to use Java to call REST APIs.
If my response answered your questions, please feel free to mark it as an accepted solution! - 3 years ago
Hello prasadu507,
I have a custom field (metadata) c_message_last_reviewed_date in messages table and when I tried to update using the method mentioned here: https://developer.khoros.com/khoroscommunitydevdocs/reference/update-message
It's working for me.
Here is the example:call method: PUT
URL: https://[COMMUNITY-DOMAIN]/api/2.0/messages/<message-id>
Header params:
- content-type: application/json
- li-api-session-key: [SESSION-KEY]
Body raw json:
{
"data":{
"type":"message",
"c_message_last_reviewed_date": "2022-08-16T16:13Z"
}
}Response is returning as 200 and value has been updated.
Let me know further details like which field you are trying to update or if you want we can sync on a call to resolve it.
Regards,
Abhishek Gupta - 3 years ago
AbhishekGu Thank you for helping, highly appreciated!
prasadu507 If the above response answered your questions, please feel free to mark it as an accepted solution!