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