gApis static method
token
: Google OAuth access token- Return authorization header for Google APIs:
Map<String, String>{
'Authorization': 'Bearer $token',
'X-Goog-AuthUser': '0',
};
Implementation
static Map<String, String> gApis(String token) {
return {
'Authorization': 'Bearer $token',
'X-Goog-AuthUser': '0',
};
}