flutter - 理解 googleapi 文档颤动
问题描述
我完全无法理解 dart 的 GmailApi 文档。我已经实施
import 'package:googleapis/gmail/v1.dart' as gapi;
Future <gapi.ListLabelsResponse> gmailProfile() async{
final userProfile = await gapi.GmailApi(httpClient).users.labels.list(
uid, //this is firebase auth user id
//$fields expected
);
return userProfile;
}
从https://pub.dev/documentation/googleapis/latest/googleapis.gmail.v1/UsersLabelsResourceApi/list.html阅读, 但由于列表需要 2 个参数,其中第二个是 $fields,我不明白该放什么。
同样是为了什么
Future <gapi.ListLabelsResponse> gmailProfile() async{
final userTrash = await gapi.GmailApi(httpClient).users.labels.list(
uid,
//id expected which I'm asssuming is gonna be mail's/message's id
//$fields expected same as above
);
return userTrash;
}
请对我放轻松。由于没有适用GoogleApis
于 dart 的实际示例,因此我正在阅读难以理解的文档来实现所有内容。
解决方案
推荐阅读
- search - VScode:有没有办法在VScode中隐藏Goto文件中的符号链接结果..(快速文件打开)?和一般搜索?
- node.js - 如何使 pouchdb cloudant 复制与 node.js/express 代理一起工作?
- javascript - 匹配两个单词的正则表达式
- eclipse - 按类型对 Eclipse 中的变量进行排序
- c# - 我可以在 Azure 函数上下载 ODBC 驱动程序吗?
- vhdl - 使用 VHDL 泛型选择实体
- scala - 如何在地图中查找重复值
- c# - Postgres:为什么不能从 CLI 中使用 EF Core 3 脚手架
- python - 当我在 python 中舍入 x 时,它返回 0.0
- multithreading - 在 Rust 的 sigint 上唤醒一个睡眠线程?