setUsername("YOUR_API_KEY"); // or, configure Bearer (JWT) authorization: oauth2 // $config->setAccessToken("YOUR_ACCESS_TOKEN"); $api = new HelloSignSDK\Api\ApiAppApi($config); $whiteLabelingOptions = new HelloSignSDK\Model\SubWhiteLabelingOptions(); $whiteLabelingOptions->setPrimaryButtonColor("#00b3e6") ->setPrimaryButtonTextColor("#ffffff"); $customLogoFile = new SplFileObject(__DIR__ . "/CustomLogoFile.png"); $data = new HelloSignSDK\Model\ApiAppUpdateRequest(); $data->setName("New Name") ->setCallbackUrl("http://example.com/hellosign") ->setWhiteLabelingOptions($whiteLabelingOptions) ->setCustomLogoFile($customLogoFile); $clientId = "0dd3b823a682527788c4e40cb7b6f7e9"; try { $result = $api->apiAppUpdate($clientId, $data); print_r($result); } catch (HelloSignSDK\ApiException $e) { $error = $e->getResponseObject(); echo "Exception when calling HelloSign API: " . print_r($error->getError()); }