General¶
Like, Follow and Bookmark are available as options for the user to interact with the content.
Only like is documented below; swap like for follow or bookmark as needed.
like a resource¶
http POST https://sls-api.sheepcrm.com/selfservice/v2/example/person/56dddf627e6ca15f518356dd/like/ "Authorization: Bearer $APP_API_TOKEN"
HTTP/1.1 200 OK
{
"connection": "/example/connection/63f499fe4473a59fb4323958/",
"uri": "/example/person/56dddf627e6ca15f518356dd/"
}
unlike a resource¶
http DELETE https://sls-api.sheepcrm.com/selfservice/v2/example/person/56dddf627e6ca15f518356dd/like/ "Authorization: Bearer $APP_API_TOKEN"
HTTP/1.1 200 OK
{
...
}
Is a resource liked?¶
http https://sls-api.sheepcrm.com/selfservice/v2/example/person/56dddf627e6ca15f518356dd/interactions/ "Authorization: Bearer $APP_API_KEY"
HTTP/1.1 200 OK
{
"bookmarked": false,
"followed": false,
"liked": true,
"uri": "/example/person/56dddf627e6ca15f518356dd/"
}