2017 © Pedro Peláez
 

library qualtrics

Provides access to the Qualtrics API in Laravel 4

image

morphatic/qualtrics

Provides access to the Qualtrics API in Laravel 4

  • Saturday, August 16, 2014
  • by morphatic
  • Repository
  • 1 Watchers
  • 3 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Qualtrics API wrapper for Laravel 4

Latest Stable Version Total Downloads Latest Unstable Version Build Status Coverage Status Dependency Status License, (*1)

The Qualtrics REST API allows you to query the Qualtrics system using a simple URL syntax. All requests are simple GET or POST requests that return XML or JSON. The REST API allows you to interact with any part of the Qualtrics system allowing for full integration with client systems., (*2)

This Qualtrics API wrapper for Laravel 4 provides access to the API via a PHP wrapper., (*3)

Installation

To install the Qualtrics API wrapper for Laravel 4, add the following to the "require" element of your composer.json file:, (*4)

    "morphatic/qualtrics": "1.1.*@dev"

Then run composer update from the command line., (*5)

In config.app under providers add:, (*6)

    'Morphatic\Qualtrics\QualtricsServiceProvider',

Finally, from the command line run:, (*7)

    php artisan config:publish morphatic/qualtrics

And in the app/config/packages/morphatic/qualtrics/config.php file update your username and API token. Optionally you may also add a library ID to the config file., (*8)

Basic usage

You can create a basic instance of the class with just a username and API token. Here's an example:, (*9)

// Qualtrics login email 
$user  = 'someuser@test.com';

// Qualtrics API Token
$token = 'RmvGK6vjF3Izx8Ea2pCisDDSpqE4dELw9AzheBDc';

// create the instance
$qtrx  = new Qualtrics( $user, $token );

// get the user info (no additional parameters necessary)
$info  = $qtrx->getUserInfo();

// accessible libraries
$libraries = $info->Libraries;

// get a particular survey (requires ID of desired survey)
$mysurvey = $qtrx->getSurvey( [ 'SurveyID' => 'SV_9EQYOts8KmOle04' ] );                       

Any additional parameters required by the call (see the official API documentation) should be passed as an associative array of key/value pairs. The keys are case sensitive and follow the naming convention of the official docs., (*10)

Disclaimer

I am in no way, shape, or form affiliated with Qualtrics. In order to gain access to the Qualtrics REST API, your organization or institution must subscribe to this service. In my case, it meant contacting an IT administrator at my university and asking them to do so., (*11)

License

Qualtrics API wrapper for Laravel 4 is open-sourced software licensed under the MIT license, (*12)

The Versions

16/08 2014

dev-master

9999999-dev

Provides access to the Qualtrics API in Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

16/08 2014

1.1.0-beta

1.1.0.0-beta

Provides access to the Qualtrics API in Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

16/08 2014

1.0.3-beta

1.0.3.0-beta

Provides access to the Qualtrics API in Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

14/08 2014

1.0.1-beta

1.0.1.0-beta

Provides access to the Qualtrics API in Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

14/08 2014

1.0.0-beta

1.0.0.0-beta

Provides access to the Qualtrics API in Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires