forked from lxm_flutter/FlutterUnit
📝 要点集录初测
This commit is contained in:
22
lib/app/api/github/github_api.dart
Normal file
22
lib/app/api/github/github_api.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:flutter_unit/app/utils/http/http_util.dart';
|
||||
import 'package:flutter_unit/app/utils/http/rep_result.dart';
|
||||
|
||||
/// create by 张风捷特烈 on 2020/6/17
|
||||
/// contact me by email 1981462002@qq.com
|
||||
/// 说明:
|
||||
|
||||
class GithubApi {
|
||||
// static Future<RepResult> authorizations({String base64}) async {
|
||||
// var result = await HttpUtil.getInstance().post("/authorizations",
|
||||
// options: Options(headers: {"Authorization": "Basic $base64"}),
|
||||
// data: {
|
||||
// "scopes": ["user", "repo", "gist", "notifications"],
|
||||
// "note": "admin_script",
|
||||
// "client_id": GithubClientConfig.clientId,
|
||||
// "client_secret": GithubClientConfig.clientSecret
|
||||
// });
|
||||
//
|
||||
// return result;
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user