postCourseHeaders static method

Map<String, String> postCourseHeaders({
  1. required String apiKey,
  2. required String baseUrl,
  3. required String token,
  4. required String wid,
  5. required String courseId,
  6. required String rootOrgId,
})

Implementation

static Map<String, String> postCourseHeaders(
    {required String apiKey,
    required String baseUrl,
    required String token,
    required String wid,
    required String courseId,
    required String rootOrgId}) {
  Map<String, String> headers = {
    'Authorization': 'bearer $apiKey',
    'x-authenticated-user-token': token,
    'Content-Type': 'application/json; charset=utf-8',
    'hostpath': baseUrl,
    'locale': 'en',
    'org': 'dopt',
    'rootOrg': 'igot',
    'courseId': courseId,
    'userUUID': wid,
    'x-authenticated-userid': wid,
    'x-authenticated-user-orgid': rootOrgId
  };
  return headers;
}