0.0.29 • Published 2 years ago

@p.aleks/myshows-api v0.0.29

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years 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

2 years ago

0.0.29

2 years ago

0.0.26

2 years ago

0.0.27

2 years ago

0.0.22

3 years ago

0.0.24

3 years ago

0.0.25

3 years ago

0.0.21

4 years ago

0.0.20

4 years ago

0.0.17

4 years ago

0.0.18

4 years ago

0.0.19

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago