Latest stories

get_profile_pics

  • Inputs
{
    "chat_id": "string: chat id excludes other inputs",
    "phone_number": "phone number: example: +18885559977, excludes other inputs",
    "user_id": "integer: user id excludes other inputs",
    "user_name": "string between 4 to 40 characters: excludes other inputs",
    "wall_id": "integer: wall id excludes other inputs"
}

  • Errors
{
    "chat_id_is_invalid": "chat id is not valid",
    "must_login": "user must be login",
    "permission_denied": "user is not a member to view the profile picture or the profile owner blocks the user",
    "phone_number": [
        {
            "null value not allowed": "input not a valid phone number"
        }
    ],
    "user_name_does_not_exist_or_not_valid": "user name does not exist or not valid",
    "user_not_found": "no user register with this phone number or user id"
}

  • Extra Description
Return all the profile pictures of the specific profile

  • Sample
  • Url:
https://api.pantel.me/a/get_profile_pics?phone_number=+1**********
  • Output:
                                {
    "result": [
        {
            "image_path": "*/*/*/*/*/********************/iba473cb1cfb09f343f1f956947131760.jpg",
            "image_server_id": 1,
            "media_id": 22,
            "profile_picture": false,
            "server_path": "https://URL/f"
        },
        {
            "image_path": "*/*/*/*/*/********************/ie1b1b504624c80cff4c050d660134547.jpg",
            "image_server_id": 1,
            "media_id": 21,
            "profile_picture": false,
            "server_path": "https://URL/f"
        },
        {
            "image_path": "*/*/*/*/*/********************/ic22babb3e01290a3a59a95a926d56acf.jpg",
            "image_server_id": 1,
            "media_id": 20,
            "profile_picture": true,
            "server_path": "https://URL/f"
        }
    ],
    "status": "success",
    "time": 1546084913.2901537
}