class MonkeyBusiness::API

This is the class the end-user should be interacting with.

Public Class Methods

new() click to toggle source
# File lib/monkey_business.rb, line 22
def initialize
  @access_token = ENV['SURVEYMONKEY_ACCESS_TOKEN']
end

Public Instance Methods

benchmark_bundles(options = {}) click to toggle source
# File lib/monkey_business.rb, line 66
def benchmark_bundles(options = {})
  BenchmarkBundles.new(self, options)
end
collectors(options = {}) click to toggle source
# File lib/monkey_business.rb, line 58
def collectors(options = {})
  Collectors.new(self, options)
end
contact_fields(options = {}) click to toggle source
# File lib/monkey_business.rb, line 54
def contact_fields(options = {})
  ContactFields.new(self, options)
end
contact_lists(options = {}) click to toggle source
# File lib/monkey_business.rb, line 46
def contact_lists(options = {})
  ContactLists.new(self, options)
end
contacts(options = {}) click to toggle source
# File lib/monkey_business.rb, line 50
def contacts(options = {})
  Contacts.new(self, options)
end
errors(options = {}) click to toggle source
# File lib/monkey_business.rb, line 70
def errors(options = {})
  Errors.new(self, options)
end
groups(options = {}) click to toggle source
# File lib/monkey_business.rb, line 42
def groups(options = {})
  Groups.new(self, options)
end
request(resource_path, options = {}) click to toggle source
# File lib/monkey_business.rb, line 74
def request(resource_path, options = {})
  HttpRequest.request(
    @access_token,
    BASE_URI + resource_path,
    options
  )
end
survey_categories(options = {}) click to toggle source
# File lib/monkey_business.rb, line 30
def survey_categories(options = {})
  SurveyCategories.new(self, options)
end
survey_templates(options = {}) click to toggle source
# File lib/monkey_business.rb, line 34
def survey_templates(options = {})
  SurveyTemplates.new(self, options)
end
surveys(options = {}) click to toggle source
# File lib/monkey_business.rb, line 26
def surveys(options = {})
  Surveys.new(self, options)
end
users(options = {}) click to toggle source
# File lib/monkey_business.rb, line 38
def users(options = {})
  Users.new(self, options)
end
webhooks(options = {}) click to toggle source
# File lib/monkey_business.rb, line 62
def webhooks(options = {})
  Webhooks.new(self, options)
end