gApis static method

Map<String, String> gApis(
  1. String token
)
  • 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',
  };
}