getDiskSpace method

Future<DiskSpace> getDiskSpace()

获取网盘容量信息

官方文档: https://pan.baidu.com/union/doc/Cksg0s9ic

Implementation

Future<DiskSpace> getDiskSpace() async {
  final map = await _get('api/quota', params: {
    'checkfree': '1',
    'checkexpire': '1',
  });
  return DiskSpace.fromJson(map);
}