API - Basic API calls

Right now, I am trying to refactor get_courses and get_course_details into one.