Current User Courses API

not enrolled

GET /v1/:school_id/current_user/courses/:id/enrollment

Parameters

Name Description
school_id school_id
id id

Request

Headers

Accept: application/json

Route

GET /v1/607/current_user/courses/331/enrollment

Query Parameters

{}: 

cURL

curl "http://localhost:3000/v1/607/current_user/courses/331/enrollment" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Client-Token: mobile" \
	-H "Sso-Token: 8ZKL-csu-vQcYBvptDsz" \
	-H "Host: api.worksonmy.computer"

Response

Headers

Content-Type: application/json; charset=utf-8
Content-Length: 27

Status

401 Unauthorized

Body

{
  "error": "Failed to Login"
}