Class: Thinkific::Course
- Inherits:
-
Object
- Object
- Thinkific::Course
- Defined in:
- lib/thinkific/course.rb
Class Method Summary collapse
Class Method Details
.all ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/thinkific/course.rb', line 5 def self.all result = HTTParty.get "#{Thinkific::DOMAIN}/api/public/v1/courses", :headers => Thinkific.headers, :query => { :limit => 10000 } rs = JSON.parse result.body return rs['items'] end |