API:
Documentation

Likes

List likes on photo
Like photo
Dislike photo

List likes on photo

GET /photos/:photo_id/likes
Response
{
    "data": [
        {
            "id": 3,
            "name": "Estel Ferry",
            "username": "estelferry"
            "avatar": "https://tookapic.com/img/avatar-default.png",
            "liked_at": "2016-01-20T10:31:23+0100"
        },
        {
            "id": 2,
            "name": "Paweł Kadysz",
            "username": "pawelkadysz",
            "avatar": "https://tookapic.com/img/avatar-default.png",
            "liked_at": "2016-01-20T10:31:23+0100"
        }
    ]
}

Like photo

POST /photos/:photo_id/like
Response
{
    "data": {
        "count_likes": 1
    }
}

Dislike photo

DELETE /photos/:photo_id/like
Response
{
    "data": {
        "count_likes": 0
    }
}

Pawel from Tookapic

Hi, I’m happy to help you with any tookapic subject, however, before you send me a message, please look at Help section where you can find answers for most questions.

We’ll reply shortly!

Please note that answers for most questions about tookapic can be found in the Help section.