-
Notifications
You must be signed in to change notification settings - Fork 22
Create comment
Onur Akpolat edited this page Nov 4, 2016
·
1 revision
Endpoint
POST https://api.tapglue.com/0.4/posts/:PostID/comments
Params
Attribute | Type |
---|---|
contents | object |
private | object |
Example
curl https://api.tapglue.com/0.4/posts/:PostID/comments \
-u APP_TOKEN:SESSION_TOKEN \
-H 'Accept: application/json' \
-H "User-Agent: Tapglue Test UA" \
-H "Content-Type: application/json" \
-d '{"contents": {"en-GB": "Great post, I really like it."}}'
Response
{
"contents": {
"en-GB": "Great post, I really like it."
},
"id": "14496455624495623",
"post_id": "14452165116431589",
"user_id": "13336886126842393",
"created_at": "2015-12-09T18:16:20.884793465Z",
"updated_at": "2015-12-09T18:16:20.884793594Z"
}