You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SDK for accessing various metadata of KKBOX tracks, albums, artists, playlists and stations.
7
+
The SDK helps to access various metadata from KKBOX, including tracks, albums, artists, playlists and stations.
8
+
9
+
### Install Using npm
10
+
11
+
You can install the SDK using [npm](https://www.npmjs.com) by running
7
12
8
-
### npm install
9
13
```
10
14
npm install @kkbox/kkbox-js-sdk
11
15
```
12
16
13
-
### Source Install
17
+
### Install from Source Code
18
+
19
+
Download the SDK and then input the following command under command line
20
+
14
21
```
15
22
npm install
16
23
```
17
24
18
-
### Build SDK
25
+
### Build
26
+
19
27
```
20
28
npm run build
21
29
```
22
30
23
31
### Test
24
-
For testing, you should first browse [https://developer.kkbox.com/](https://developer.kkbox.com/) and create an developer account, then create an app to get client id and client secret for that account.
25
32
26
-
Then, create a file name `client_secrets.json`, put it in the `test` directory and write the client id and client secret in it. The content will be like:
33
+
To test or start using the SDK, a valid client ID and client secret are required. Please visit [https://developer.kkbox.com/](https://developer.kkbox.com/), create a new developer account, and obtain the client ID and client secret of your app.
34
+
35
+
Then, create a file named `client_secrets.json`, put it into the `test` directory, and fill your client ID and client secret into it. It may look like
27
36
28
37
```
29
38
{
@@ -34,16 +43,18 @@ Then, create a file name `client_secrets.json`, put it in the `test` directory a
0 commit comments