I'm quite not able to understand GmailApi documentation for dart. I've implemented
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;
}
reading from https://pub.dev/documentation/googleapis/latest/googleapis.gmail.v1/UsersLabelsResourceApi/list.html but as list expects 2 arguments where second is $fields, I don't understand what to put there.
Similarly what would it be for
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;
}
Please go easy on me. As there are no practical examples of GoogleApis
for dart, I'm implementing everything reading the documentation which is hard to understand.