CambridgeEducation / qualtrics_api

Qualtrics REST API Ruby Wrapper (Api version 3)
MIT License
6 stars 8 forks source link

API can be both accessed globally or from a client instance #19

Closed nglx closed 9 years ago

nglx commented 9 years ago
nglx commented 9 years ago

This allows the client to be used either globally like:

QualtricsAPI.configure do |config|
  config.api_token = 'api_token'
end
QualtricsAPI.panels.fetch['ML_bC2c5xBz1DxyOYB'].members

or with a client like:

client = QualtricsAPI::Client.new('api_token')
client.panels.fetch['ML_bC2c5xBz1DxyOYB'].members