postHeaders static method

Map<String, String> postHeaders({
  1. required String token,
  2. required String wid,
  3. required String apiBaseUrl,
  4. required String apiKey,
  5. required String rootOrgId,
})

Implementation

static Map<String, String> postHeaders(
    {required String token,
    required String wid,
    required String apiBaseUrl,
    required String apiKey,
    required String rootOrgId}) {
  Map<String, String> headers = {
    'Authorization': 'bearer $apiKey',
    'x-authenticated-user-token': token,
    'Content-Type': 'application/json',
    'hostpath': apiBaseUrl,
    'locale': 'en',
    'org': 'dopt',
    'rootOrg': 'igot',
    'wid': wid,
    'userId': wid,
    'x-authenticated-user-orgid': rootOrgId
  };
  return headers;
}