Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

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}}
Release History

Release History

This version
History Node

0.1.5

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
myshowsapi-0.1.5-py3-none-any.whl (5.1 kB) Copy SHA256 Checksum SHA256 py3 Wheel May 9, 2017
myshowsapi-0.1.5.tar.gz (3.5 kB) Copy SHA256 Checksum SHA256 Source May 9, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting