Sha256: a41202c930b8629d8f8b4f57ca0ada717621f779b751bd4ed4042e8f8853a5cc

Contents?: true

Size: 279 Bytes

Versions: 3

Compression:

Stored size: 279 Bytes

Contents

require 'httparty'

class Thinkific::Course

  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

  

end


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thinkific-0.0.5 lib/thinkific/course.rb
thinkific-0.0.4 lib/thinkific/course.rb
thinkific-0.0.3 lib/thinkific/course.rb