Photo details

Brief description:

  • Get a standard album photo details (other than profile/cover)

Endpoint

Method:

  • POST / GET

Parameter:

Parameter name Required Type Explain
api_key_token Yes string Your API key
photo_guid Yes integer PhotoGuid you wanted to get
uguid Yes integer UserID who is viewing the photo

Example Response

{
    "merchant": "Open Source Social Network",
    "url": "http:\/\/www.mywebsite.com\/",
    "time_token": 1569324531,
    "payload": {
        "album": {
            "data": {},
            "guid": "112",
            "time_created": "1569237368",
            "owner_guid": "1",
            "description": "",
            "title": "Test",
            "type": "user",
            "subtype": "ossn:album",
            "access": "3",
            "file:ossn:aphoto": "album\/photos\/8e00ae2e2f3c27a33693cf8d00bd0792.jpg"
        },
        "photo": {
            "guid": "700",
            "is_liked_by_user": false,
            "total_likes": 0,
            "image_url": "http:\/\/www.mywebsite.com\/album\/getphoto\/112\/8e00ae2e2f3c27a33693cf8d00bd0792.jpg",
            "time_created": "1569323833"
        }
    },
    "code": "100",
    "message": "Request successfully executed"
}

Return payload parameter description

Parameter name Explain
photo Will contain photo details
album Will contain album details
photo.is_liked_by_user true If it is liked by uguid

Remarks

  • If photo didn't exist you will get 103 error.

Services View All