API wrapper for http://api.myshows.me/
Project description
To get auth data for OAuth 2.0 please contact with email that shown at api.myshows.me (v2).
API methods are described here.
Requirements
python 3.4+
Installation
pip3 install myshowsapi
Usage
>>> import myshowsapi
# Getting token within Client Credentials Grant
>>> session = myshowsapi.Session(client_id='<CLIENT_ID>',
client_secret='<CLIENT_SECRET>')
# Getting token within Authorization Code Grant
>>> # session = myshowsapi.Session(client_id='<CLIENT_ID>',
# client_secret='<CLIENT_SECRET>', code='<CODE>',
# redirect_uri='<REDIRECT_URI>',
# grant_type='authorization_code')
# You can receive the <CODE> in response headers after authorization at
# https://myshows.me/oauth/authorize?response_type=code&client_id=<CLIENT_ID>
# &scope=basic
>>> api = myshowsapi.API(session)
>>> api.profile.Get(login='user')
{'stats': {'remainingDays': 2.5,
'remainingEpisodes': 154,
'remainingHours': 60.5,
'totalDays': 65,
'totalEpisodes': 2640,
'totalHours': 1560.7,
'watchedDays': 62.5,
'watchedEpisodes': 2486,
'watchedHours': 1500.2},
'user': {'avatar': 'https://api.myshows.me/shared/img/fe/default-user-avatar-normal.png',
'gender': 'm',
'isPro': False,
'login': 'bwn',
'wastedTime': 1502}}
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
myshowsapi-0.1.5.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file myshowsapi-0.1.5.tar.gz
.
File metadata
- Download URL: myshowsapi-0.1.5.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 398f9218038d432c73ae333d1acbf68088cf65aa0aafd1938bbff777f6ede5a6 |
|
MD5 | 236d45ed313c558400df22f583f357f9 |
|
BLAKE2b-256 | b48b0b3826c13a905e61a83b61b6022896ee235c4a27ae09f755a593b5c165f2 |
File details
Details for the file myshowsapi-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: myshowsapi-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3285933ccfea680a40cdd68d67bd3c710131c9fa4a7bc6474623abc2a21222ce |
|
MD5 | 17a3e830d795be6f6fdbd761ccb95b21 |
|
BLAKE2b-256 | 6e7a2a5b995c6002a662d88fafaa2095ac094c5e1669d382d44ace5524979bd8 |