PHP code example of morphatic / qualtrics

1. Go to this page and download the library: Download morphatic/qualtrics library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

morphatic / qualtrics example snippets


// Qualtrics login email 
$user  = '[email protected]';

// 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 (

    php artisan config:publish morphatic/qualtrics