Skip to content
No description, website, or topics provided.
Dart
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
lib
test
.gitignore
CHANGELOG.md
LICENSE.txt Updates documentation. Jun 27, 2018
README.md
analysis_options.yaml
pubspec.yaml

README.md

KKBOX Open API Dart Developer SDK

License Apache 

KKBOX's Open API provides various data from KKBOX's rich music archive. It helps you to access data about KKBOX's song tracks, albums, artist playlist and so on.

You can use the SDK in your projects that runs in Dart VM, or your Flutter projects.

For further information, please visit KKBOX Developer Site.

Installation

To use the SDK, add kkbox_openapi to your pubspec.yaml file.

Then run pub get.

Usage

A simple usage example:

import 'package:kkbox_openapi/kkbox_openapi.dart';

main() async {
  var clientID = "YOUR_CLIENT_ID";
  var clientSecret = "YOUR_CLIENT_SECRET";
  var api = new KKBOXOpenAPI(clientID, clientSecret);
  try {
    await api.fetchAccessTokenByClientCredential();
    var result = await api.fetchTrack('4kxvr3wPWkaL9_y3o_');
    print(result);
  } catch (err) {
    print(err);
  }
}

License

Copyright 2018 KKBOX Technologies Limited

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You can’t perform that action at this time.