netease_music_request 1.0.6

  • Readme
  • Changelog
  • Installing
  • new49

Dart版网易云音乐接口 #

GitHub repo size Last Tag GitHub last commit GitHub

Support Pub Version

GitHub stars GitHub forks

使用Dio发起请求,CookieJar管理Cookie,可用于命令行程序、Flutter程序。

接口逻辑来源于 Binaryify/NeteaseCloudMusicApi

其接口文档为https://binaryify.github.io/NeteaseCloudMusicApi

本项目使用Dart实现其接口逻辑,并在其基础上使用CookieJar管理Cookie信息

使用 #


import 'package:netease_music_request/request.dart';

void main() {
  var phone = '';
  var password = '';
  User().loginByPhone(phone, password).then((data) => print(data));
}

1.0.0 #

  • 初始化,完成网易云接口

1.0.1 #

  • 更新README

1.0.2 #

  • UPDATE

1.0.3 #

  • 修复登录出错

1.0.4 #

  • 可设置cookie存放位置

1.0.5 #

  • 更新榜单名

1.0.6 #

  • fix. 修复输出问题

Use this package as a library

1. Depend on it

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


dependencies:
  netease_music_request: ^1.0.6

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:netease_music_request/exception.dart';
import 'package:netease_music_request/request.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
22
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
40
Overall:
Weighted score of the above. [more]
49
Learn more about scoring.

We analyzed this package on Jul 8, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.14

Analysis suggestions

Package not compatible with runtime flutter-web on web

Because:

  • package:netease_music_request/request.dart that imports:
  • package:steel_crypt/steel_crypt.dart that imports:
  • package:steel_crypt/src/steel_crypt_base.dart that imports:
  • dart:io

Package not compatible with runtime js

Because:

  • package:netease_music_request/request.dart that imports:
  • package:steel_crypt/steel_crypt.dart that imports:
  • package:steel_crypt/src/steel_crypt_base.dart that imports:
  • dart:io

Health suggestions

Format lib/exception.dart.

Run dartfmt to format lib/exception.dart.

Format lib/src/exception/response_exception.dart.

Run dartfmt to format lib/src/exception/response_exception.dart.

Format lib/src/request/album.dart.

Run dartfmt to format lib/src/request/album.dart.

Fix additional 13 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/request/artist.dart (Run dartfmt to format lib/src/request/artist.dart.)
  • lib/src/request/banner.dart (Run dartfmt to format lib/src/request/banner.dart.)
  • lib/src/request/cloud.dart (Run dartfmt to format lib/src/request/cloud.dart.)
  • lib/src/request/comment.dart (Run dartfmt to format lib/src/request/comment.dart.)
  • lib/src/request/dj.dart (Run dartfmt to format lib/src/request/dj.dart.)
  • lib/src/request/message.dart (Run dartfmt to format lib/src/request/message.dart.)
  • lib/src/request/player.dart (Run dartfmt to format lib/src/request/player.dart.)
  • lib/src/request/playlist.dart (Run dartfmt to format lib/src/request/playlist.dart.)
  • lib/src/request/request.dart (Run dartfmt to format lib/src/request/request.dart.)
  • lib/src/request/search.dart (Run dartfmt to format lib/src/request/search.dart.)
  • lib/src/request/song.dart (Run dartfmt to format lib/src/request/song.dart.)
  • lib/src/request/user.dart (Run dartfmt to format lib/src/request/user.dart.)
  • lib/src/request/utils.dart (Run dartfmt to format lib/src/request/utils.dart.)

Maintenance issues and suggestions

Support latest dependencies. (-20 points)

The version constraint in pubspec.yaml does not support the latest published versions for 2 dependencies (crypton, steel_crypt).

The description contains too many non-ASCII characters. (-20 points)

The site uses English as its primary language. The value of the description field in your package's pubspec.yaml field should primarily contain characters used in English.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and netease_music_request.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
convert 2.1.1 2.1.1
cookie_jar 1.0.1 1.0.1
crypto 2.1.5 2.1.5
crypton 1.0.8 1.0.8 1.1.0
dio 3.0.9 3.0.9
dio_cookie_manager 1.0.0 1.0.0
steel_crypt 2.0.0 2.0.0 2.0.3
Transitive dependencies
args 1.6.0
asn1lib 0.6.5
charcode 1.1.3
collection 1.14.13 1.15.0-nnbd
hex 0.1.2
http_parser 3.1.4
meta 1.2.1
path 1.7.0
pointycastle 1.0.2
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.2.0 1.3.0-nnbd
union 0.0.3+1
Dev dependencies
pedantic ^1.8.0
test ^1.6.0