<?php /** * Update user settings * * http://api.jotform.com/docs/#post-user-settings */ require '../../vendor/autoload.php'; $key = 'your-api-key-from-jotform'; $client = new JotForm\JotFormClient(); $client->setAPIKey($key); $user = new JotForm\Resource\User($client); try { $options = ['name' => 'Foo Bar', 'company' => 'MyCompany Inc.']; $response = $user->updateUserSettings($options); print_r($response); } catch (\JotForm\Exception\ClientException $e) { echo $e->getMessage() . "\n"; }