Welcome to my little API documentation. Below you will find a list of available API methods and examples of their use.
Our API endpoint is located at https://api.hella.team
. At the moment, the most up-to-date version of the API==2
For authorization, you must specify access_token
as a parameter, you can get it here. If you do not specify access_token
, then the limits will be very strict.
Get user stickers. Here's how to use it:
import requests
url = "https://api.hella.team/method/getStickers"
params = {
"v": "2",
"user_id": 1
}
resp = requests.get(url, params=params)
if resp.status_code != 200:
raise Exception("Error: {}".format(resp.status_code))
print(resp.json())
{
"object": {
"all_price": 10626,
"all_price_vote": 1518,
"count": 196,
"items": {
"animation": {
"count": 9,
"names": [
"Пси-Кот",
"Анимированный Сеня",
// ...
],
"price_vote": 160
},
"free": {
"count": 48,
"names": [
"Фруктовощи",
"Спотти",
// ...
],
"price_vote": 0
},
// ...
}
},
"ok": true
}
Get information about the sticker pack, required parameter access_token
import requests
url = "https://api.hella.team/method/getSticker"
params = {
"v": "2",
"sticker_id": 1,
"product_id": 1
}
resp = requests.get(url, params=params)
if resp.status_code != 200:
raise Exception("Error: {}".format(resp.status_code))
print(resp.json())
{
"object": {
"author": "Андрей Яковенко",
"author_id": 11316927,
"count": 49,
"description": "Чемпион по вилянию хвостом, верный друг и надёжная грелк
а.",
"is_anim": false,
"is_new": false,
"items": [
"лол",
"хаха",
"ахах",
// ...
],
"price": 0,
"style_orig": false,
"title": "Спотти",
"unique": false
},
"ok": true
}
More methods will be added soon.