Latest stories

create_sticker_album

  • Inputs
{
    "album_name": "string: name of sticker's album",
    "album_pic_id": "string: id of picture's album",
    "category_id": "integer: sticker album category",
    "is_public": "integer: 0 as private, 1 as public",
    "stickers": "list of dictionaries: sticker_file_id and sticker_emoji as dict-keys and string for dict-values: example: [{\"sticker_file_id\":\"i3d0cdfcb1cac93d937e35edd3e397f19\", \"sticker_emoji\":\"\ud83d\udc9b\"}]",
    "type": "integer: between 1 and 4"
}

  • Errors
{
    "duplicate_emoji_in_album": "more than one stickers are assigned to one emoji",
    "invalid_category_or_file": "category_id is incorrect",
    "invalid_emoji": "emoji is not supported",
    "invalid_file": "the file_id is not valid",
    "is_public": [
        {
            "min value is 0": "minimum valid value is 0"
        },
        {
            "max value is 1": "maximum valid value is 1"
        }
    ],
    "must_login": "user must be login",
    "type": [
        {
            "min value is 1": "minimum valid value is 1"
        },
        {
            "max value is 4": "maximum valid value is 4"
        }
    ]
}

  • Extra Description
Create a sticker album with a given name, and picture as album picture. every sticker should assign to a unique emoji. albums can be private or public in pre-defined categories

  • Sample
  • Url:
https://api.pantel.me/a/create_sticker_album?album_name=myalbum&is_public=1&category_id=1&album_pic_id=&type=1&stickers=
  • Output:
                                {
    "status": "success",
    "sticker_album_id": 44,
    "time": 1547554861.119597
}