Class: School21::CoursesApi

Inherits:
BaseApi
  • Object
show all
Defined in:
lib/school21/api/courses_api.rb

Constant Summary

Constants inherited from BaseApi

BaseApi::PLATFORM_AUTH_PARTICIPANT

Instance Method Summary collapse

Methods inherited from BaseApi

base_uri, #execute_request, #initialize, #new_api_call_builder, #new_parameter, #new_request_builder, #new_response_handler, #request_with_auth_participant, response_convertor

Constructor Details

This class inherits a constructor from School21::BaseApi

Instance Method Details

#course(course_id) ⇒ Object



5
6
7
8
9
10
# File 'lib/school21/api/courses_api.rb', line 5

def course(course_id)
  path = ['/courses/', course_id].join
  new_request = request_with_auth_participant(HttpMethod::GET, path, :api_v1)

  execute_request(new_request)
end