1. Go to this page and download the library: Download squiggle-dev/squiggle-php 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/ */
squiggle-dev / squiggle-php example snippets
onfigure API key authorization: jwt
Squiggle\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Squiggle\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$api_instance = new Squiggle\Api\DefaultApi();
$data = new \Squiggle\Model\Address(); // \Squiggle\Model\Address |
try {
$result = $api_instance->addAddress($data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->addAddress: ', $e->getMessage(), PHP_EOL;
}