Latest stories

set_profile_pic

  • Inputs
{
    "file_id": "string: excludes media_id",
    "media_id": "integer: excludes file_id",
    "user_name": "string between 4 to 40 characters: optional"
}

  • Errors
{
    "file_id_does_not_exist_or_not_valid": "file id does not exist or not valid",
    "media_id_does_not_exist_or_not_valid": "media id does not exist or not valid",
    "must_login": "user must be login",
    "user_name_does_not_exist_or_not_valid": "user name does not exist or not valid"
}

  • Extra Description
Set picture for user's account

  • Sample
  • Url:
https://api.pantel.me/a/set_profile_pic?file_id=i1dc146657876ace9f0f4c176ee9d7973
  • Output:
                                {
    "result": {
        "media_id": 57
    },
    "status": "success",
    "time": 1526807321.5819783
}