forked from lxm_flutter/FlutterUnit
23 lines
765 B
Dart
23 lines
765 B
Dart
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;
|
|
// }
|
|
}
|