Python temple priest api.
Project description
# pyTemplePriestAPI
* Установка с репозитория:
```
$ git clone https://github.com/painca/pyTemplePriestAPI.git
$ cd pyTemplePriestAPi
$ python setup.py install
```
* Запуск:
```
import templepriest
app_id = "app_id"
app_token = "app_token"
user_id = 123456789
api = templepriest.api(app_id, app_token)
api.get_user_code(user_id)
user_token = api.get_user_token(user_id, input("Enter code: ")) #Код придет в лс с ботом
user = api.get_user(user_token)
print("Уровень:", user.lvl, "("+str(user.xp)+"/"+str(user.next_lvl_xp)+")")
```
Для получения app_id и app_token обратится к @serogaq
* Установка с репозитория:
```
$ git clone https://github.com/painca/pyTemplePriestAPI.git
$ cd pyTemplePriestAPi
$ python setup.py install
```
* Запуск:
```
import templepriest
app_id = "app_id"
app_token = "app_token"
user_id = 123456789
api = templepriest.api(app_id, app_token)
api.get_user_code(user_id)
user_token = api.get_user_token(user_id, input("Enter code: ")) #Код придет в лс с ботом
user = api.get_user(user_token)
print("Уровень:", user.lvl, "("+str(user.xp)+"/"+str(user.next_lvl_xp)+")")
```
Для получения app_id и app_token обратится к @serogaq
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyTemplePriest-0.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for pyTemplePriest-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1270a7db76d3977be8529e522114dce59bbdc207e5ff4ea9561f176dab84f7c9 |
|
MD5 | fa9c483c3370151d478c7d5d8443ad3c |
|
BLAKE2b-256 | 42b306f1bd45fdac070dcdb8c07c566ca0df6c5283e0dcdf6694959003c0e77a |