kkbox_openapi 0.9.8

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 50

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.

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() {
  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.

0.9.8

  • Fixes dependency issues.

0.9.7

  • Fixes typos.

0.9.6

  • Supports Dart 2.

0.9.5

  • Bug fixes.

0.9.4

  • Bug fixes.

0.9.3

  • Updates documentation.

0.9.1

  • Initial version.

example/kkbox_openapi_example.dart

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);
  }
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  kkbox_openapi: ^0.9.8

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:kkbox_openapi/kkbox_openapi.dart';
  
Version Uploaded Documentation Archive
0.9.8 Oct 8, 2018 Go to the documentation of kkbox_openapi 0.9.8 Download kkbox_openapi 0.9.8 archive
0.9.7 Aug 21, 2018 Go to the documentation of kkbox_openapi 0.9.7 Download kkbox_openapi 0.9.7 archive
0.9.6 Aug 20, 2018 Go to the documentation of kkbox_openapi 0.9.6 Download kkbox_openapi 0.9.6 archive
0.9.5 Jul 23, 2018 Go to the documentation of kkbox_openapi 0.9.5 Download kkbox_openapi 0.9.5 archive
0.9.4 Jun 28, 2018 Go to the documentation of kkbox_openapi 0.9.4 Download kkbox_openapi 0.9.4 archive
0.9.3 Jun 27, 2018 Go to the documentation of kkbox_openapi 0.9.3 Download kkbox_openapi 0.9.3 archive
0.9.1 Jun 27, 2018 Go to the documentation of kkbox_openapi 0.9.1 Download kkbox_openapi 0.9.1 archive
0.9.0 Jun 27, 2018 Go to the documentation of kkbox_openapi 0.9.0 Download kkbox_openapi 0.9.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
50
Learn more about scoring.

We analyzed this package on Oct 26, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.5

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:kkbox_openapi/kkbox_openapi.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
http ^0.12.0 0.12.0
Transitive dependencies
async 2.0.8
charcode 1.1.2
collection 1.14.11
http_parser 3.1.3
meta 1.1.6
path 1.6.2
source_span 1.4.1
string_scanner 1.0.4
typed_data 1.1.6
Dev dependencies
test ^1.3.0