Social IT Plus REST APIs

Social IT Plus REST APIs

Social IT Plus offers REST APIs for creating new posts and adding comments from third party IT management solutions.

How Social IT Plus REST APIs work?

The APIs work with an API key. The API key is unique for each Social IT Plus account and has to passed as a parameter in every API request made. First, generate an API key.

Generate API Key

To generate an API key, mouse over 'Welcome Admin' (on the top right corner) and click REST API. Copy the API key that is generated. If you want to regenerate it, click on Regenerate button.

APIs Supported

Add a Post

Purpose: To add a post in Social IT Plus

Request URL: http://<Social IT Plus-server:port>/api/json/dashboard/addPost?apiKey=APIKEY&post=

Request Parameters:

Parameter Description
apiKey* API Key to access your OpManager server.
post* Add your post to Social IT Plus.
* - Mandatory parameters

Sample JSON Response:

[

{

"content": <CONTENT>,
"comment_count":<COMMENT_COUNT>,
"last_participated_user":<LAST_PARTICIPATED_USER>,
"tn":<TN>,
"like_count":<LIKE_COUNT>,
"createdtime":<CREATEDTIME>,
"modified_time":<MODIFIED_TIME>,
"created_username":<CREATED_USERNAME>,
"post_id":<POST_ID>

}

]

Add a Comment

Purpose: To add a comment in Social IT Plus

Request URL: http://<Social IT Plus-server:port>/api/json/dashboard/addComment?apiKey=APIKEY&comment=COMMENT&post_id=POST_ID

Request Parameters:

Parameter Description
apiKey* API Key to access your OpManager server.
comment* Add your comment to related post in Social IT Plus.
post_id* ID of the post to which the comment has to be added.
* - Mandatory parameters

Sample JSON Response:

[

{

"content": <CONTENT>,
"comment_id":<COMMENT_ID>,
"tn":<TN>,
"like_count":<LIKE_COUNT>,
"createdtime":<CREATEDTIME>,
"modified_time":<MODIFIED_TIME>,
"created_username":<CREATED_USERNAME>,
"post_id":<POST_ID>

}

]