0.0.29 • Published 9 months ago

@p.aleks/myshows-api v0.0.29

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

@p.aleks/myshows-api

Forked from @asznee7/myshows-api

GitHub license

Overview

Simple API wrapper for logging into and interacting with MyShows website. Rewritten to Typescript.

Supported versions

  • MyShows.me API v2.0 - based on JSON-RPC 2.0 with OAuth 2.0 as authorization. In order to use this module you need to obtain OAuth AppID. If you don't have one you can request in here api@myshows.me.

Getting started

To install run

$ yarn add @p.aleks/myshows-api
// or
$ npm install @p.aleks/myshows-api

Simple example of using generic method:

import MyShows from '@p.aleks/myshows-api';

const credentials = {
  client_id: 'your_client_id',
  client_secret: 'your_client_secret',
  username: 'your_username',
  password: 'your_password',
}

async function example() {
  const myshows = new MyShows(credentials)

  const user = await myshows.generic('profile.Get', {
    login: 'Aikenov',
  }) // profile.Get API method does not require logging in

  await myshows.login() // after logging in you can use API methods that require authorization

  const list = await myshows.generic('lists.Shows', {
    list: 'favorites',
  }) // lists.Shows API method does require logging in

  console.log(user)
  console.log(list)
}

example()

API Documentation

See the MyShows.me API page to start exploring documentation.

0.0.28

9 months ago

0.0.29

9 months ago

0.0.26

1 year ago

0.0.27

1 year ago

0.0.22

2 years ago

0.0.24

2 years ago

0.0.25

2 years ago

0.0.21

3 years ago

0.0.20

3 years ago

0.0.17

3 years ago

0.0.18

3 years ago

0.0.19

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago