0.4.3 • Published 1 year ago

yandex-music-client v0.4.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

JavaScript client for Yandex Music generated from OpenAPI Schema.

Installation

npm i yandex-music-client

Usage

Creating Client

import { getToken } from 'yandex-music-client/token';
import { YandexMusicClient } from 'yandex-music-client/YandexMusicClient'

const token = await getToken('your email', 'your password');

const client = new YandexMusicClient({
    BASE: "https://api.music.yandex.net:443",
    HEADERS: {
        'Authorization': `OAuth ${config.token}`,
        // specify 'en' to receive data in English
        'Accept-Language': 'ru'
      },
});

Getting new releases

// ...

client.landing.getNewReleases();

Getting track URL

import { getTrackUrl } from 'yandex-music-client/trackUrl';
 
// ...

getTrackUrl(client, trackId);
0.0.10

1 year ago

0.0.11

1 year ago

0.1.0

1 year ago

0.3.0

1 year ago

0.2.1

1 year ago

0.1.2

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.4.1

1 year ago

0.3.2

1 year ago

0.4.0

1 year ago

0.3.1

1 year ago

0.1.3

1 year ago

0.4.3

1 year ago

0.4.2

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago