All URIs are relative to https://api.squigglesignatures.com/v1
Method | HTTP request | Description |
---|---|---|
addAddress | POST /addresses | |
addAddressBatch | POST /addresses/batch | |
addClient | POST /clients | |
addFile | POST /files | |
addGlobalTemplate | POST /global-templates | |
addSnippet | POST /snippets | |
addTemplate | POST /templates | |
addUser | POST /users | |
deleteAddress | DELETE /addresses/{id} | |
deleteFile | DELETE /files/{id} | |
deleteGlobalTemplate | DELETE /global-templates/{id} | |
deleteSnippet | DELETE /snippets/{id} | |
deleteTemplate | DELETE /templates/{id} | |
deleteUser | DELETE /users/{id} | |
editAddress | PATCH /addresses/{id} | |
editFile | PATCH /files/{id} | |
editGlobalTemplate | PATCH /global-templates/{id} | |
editSnippet | PATCH /snippets/{id} | |
editTemplate | PATCH /templates/{id} | |
editUser | PATCH /users/{id} | |
findAddresses | GET /addresses | |
findFiles | GET /files | |
findGlobalTemplates | GET /global-templates | |
findSignatures | GET /signatures | |
findSnippets | GET /snippets | |
findTemplates | GET /templates | |
findUsers | GET /users | |
generateAddressAuthCode | POST /addresses/generate-auth-code | |
generateAddressAuthCodeById | POST /addresses/generate-auth-code/{id} | |
getAddress | GET /addresses/{id} | |
getAddressToken | POST /token/address | |
getFile | GET /files/{id} | |
getGlobalTemplate | GET /global-templates/{id} | |
getImage | GET /image/{id} | |
getSignature | GET /signatures/{id} | |
getSnippet | GET /snippets/{id} | |
getTemplate | GET /templates/{id} | |
getUser | GET /users/{id} | |
getUserToken | POST /token/user | |
render | POST /render |
\Squiggle\Model\Address addAddress($data)
Creates a new address
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
data | \Squiggle\Model\Address |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string,\Squiggle\Model\Address] addAddressBatch($data)
Creates multiple new addresses
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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 = array(new Address()); // \Squiggle\Model\Address[] |
try {
$result = $api_instance->addAddressBatch($data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->addAddressBatch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
data | \Squiggle\Model\Address[] |
map[string,\Squiggle\Model\Address]
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
addClient($data)
Registers a client against an address
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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\Client(); // \Squiggle\Model\Client |
try {
$api_instance->addClient($data);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->addClient: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
data | \Squiggle\Model\Client |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\FileObject addFile($file, $name)
Upload a new file
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$file = "/path/to/file.txt"; // \SplFileObject |
$name = "name_example"; // string |
try {
$result = $api_instance->addFile($file, $name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->addFile: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
file | \SplFileObject | ||
name | string | [optional] |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\GlobalTemplate addGlobalTemplate($data)
Creates a new global template
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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\GlobalTemplate(); // \Squiggle\Model\GlobalTemplate |
try {
$result = $api_instance->addGlobalTemplate($data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->addGlobalTemplate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
data | \Squiggle\Model\GlobalTemplate |
\Squiggle\Model\GlobalTemplate
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\Snippet addSnippet($data)
Creates a new snippet
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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\Snippet(); // \Squiggle\Model\Snippet |
try {
$result = $api_instance->addSnippet($data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->addSnippet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
data | \Squiggle\Model\Snippet |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\Template addTemplate($data)
Creates a new template
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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\Template(); // \Squiggle\Model\Template |
try {
$result = $api_instance->addTemplate($data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->addTemplate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
data | \Squiggle\Model\Template |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\User addUser($data)
Creates a new user
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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\User(); // \Squiggle\Model\User |
try {
$result = $api_instance->addUser($data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->addUser: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
data | \Squiggle\Model\User |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteAddress($id, $force)
Deletes an address with the specified ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of address to delete
$force = true; // bool | Disables soft-delete when true, completely removing the row (use with caution!)
try {
$api_instance->deleteAddress($id, $force);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteAddress: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of address to delete | |
force | bool | Disables soft-delete when true, completely removing the row (use with caution!) | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteFile($id)
Deletes a file with the specified ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of file to delete
try {
$api_instance->deleteFile($id);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteFile: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of file to delete |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteGlobalTemplate($id, $force)
Deletes a global template with the specified ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of global template to delete
$force = true; // bool | Disables soft-delete when true, completely removing the row (use with caution!)
try {
$api_instance->deleteGlobalTemplate($id, $force);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteGlobalTemplate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of global template to delete | |
force | bool | Disables soft-delete when true, completely removing the row (use with caution!) | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteSnippet($id, $force)
Deletes a snippet with the specified ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of snippet to delete
$force = true; // bool | Disables soft-delete when true, completely removing the row (use with caution!)
try {
$api_instance->deleteSnippet($id, $force);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteSnippet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of snippet to delete | |
force | bool | Disables soft-delete when true, completely removing the row (use with caution!) | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteTemplate($id, $force)
Deletes a template with the specified ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of template to delete
$force = true; // bool | Disables soft-delete when true, completely removing the row (use with caution!)
try {
$api_instance->deleteTemplate($id, $force);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteTemplate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of template to delete | |
force | bool | Disables soft-delete when true, completely removing the row (use with caution!) | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteUser($id, $force)
Deletes a user with the specified ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of user to delete
$force = true; // bool | Disables soft-delete when true, completely removing the row (use with caution!)
try {
$api_instance->deleteUser($id, $force);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteUser: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of user to delete | |
force | bool | Disables soft-delete when true, completely removing the row (use with caution!) | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\Address editAddress($id, $data)
Updates an existing address with the specified ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of address to update
$data = new \Squiggle\Model\Address(); // \Squiggle\Model\Address |
try {
$result = $api_instance->editAddress($id, $data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->editAddress: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of address to update | |
data | \Squiggle\Model\Address |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\FileObject editFile($id, $file, $name)
Updates an existing file with the specified ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of file to update
$file = "/path/to/file.txt"; // \SplFileObject |
$name = "name_example"; // string |
try {
$result = $api_instance->editFile($id, $file, $name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->editFile: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of file to update | |
file | \SplFileObject | [optional] | |
name | string | [optional] |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\GlobalTemplate editGlobalTemplate($id, $data)
Updates an existing global template with the specified ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of global template to update
$data = new \Squiggle\Model\GlobalTemplate(); // \Squiggle\Model\GlobalTemplate |
try {
$result = $api_instance->editGlobalTemplate($id, $data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->editGlobalTemplate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of global template to update | |
data | \Squiggle\Model\GlobalTemplate |
\Squiggle\Model\GlobalTemplate
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\Snippet editSnippet($id, $data)
Updates an existing snippet with the specified ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of snippet to update
$data = new \Squiggle\Model\Snippet(); // \Squiggle\Model\Snippet |
try {
$result = $api_instance->editSnippet($id, $data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->editSnippet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of snippet to update | |
data | \Squiggle\Model\Snippet |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\Template editTemplate($id, $data)
Updates an existing template with the specified ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of template to update
$data = new \Squiggle\Model\Template(); // \Squiggle\Model\Template |
try {
$result = $api_instance->editTemplate($id, $data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->editTemplate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of template to update | |
data | \Squiggle\Model\Template |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\User editUser($id, $data)
Updates an existing user with the specified ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of user to update
$data = new \Squiggle\Model\User(); // \Squiggle\Model\User |
try {
$result = $api_instance->editUser($id, $data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->editUser: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of user to update | |
data | \Squiggle\Model\User |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\Address[] findAddresses($filter, $sort, $offset, $limit)
Gets addresses
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$filter = "filter_example"; // string | A list of fields and values to filter by, in query string format eg. 'type=order&status=1'
$sort = "sort_example"; // string | A comma-separated list of fields to sort by
$offset = 56; // int | The start offset of the result set
$limit = 56; // int | Max records to return
try {
$result = $api_instance->findAddresses($filter, $sort, $offset, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->findAddresses: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
filter | string | A list of fields and values to filter by, in query string format eg. 'type=order&status=1' | [optional] |
sort | string | A comma-separated list of fields to sort by | [optional] |
offset | int | The start offset of the result set | [optional] |
limit | int | Max records to return | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\FileObject[] findFiles($filter, $sort, $offset, $limit)
Gets files
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$filter = "filter_example"; // string | A list of fields and values to filter by, in query string format eg. 'type=order&status=1'
$sort = "sort_example"; // string | A comma-separated list of fields to sort by
$offset = 56; // int | The start offset of the result set
$limit = 56; // int | Max records to return
try {
$result = $api_instance->findFiles($filter, $sort, $offset, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->findFiles: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
filter | string | A list of fields and values to filter by, in query string format eg. 'type=order&status=1' | [optional] |
sort | string | A comma-separated list of fields to sort by | [optional] |
offset | int | The start offset of the result set | [optional] |
limit | int | Max records to return | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\GlobalTemplate[] findGlobalTemplates($filter, $sort, $offset, $limit)
Gets global templates
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$filter = "filter_example"; // string | A list of fields and values to filter by, in query string format eg. 'type=order&status=1'
$sort = "sort_example"; // string | A comma-separated list of fields to sort by
$offset = 56; // int | The start offset of the result set
$limit = 56; // int | Max records to return
try {
$result = $api_instance->findGlobalTemplates($filter, $sort, $offset, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->findGlobalTemplates: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
filter | string | A list of fields and values to filter by, in query string format eg. 'type=order&status=1' | [optional] |
sort | string | A comma-separated list of fields to sort by | [optional] |
offset | int | The start offset of the result set | [optional] |
limit | int | Max records to return | [optional] |
\Squiggle\Model\GlobalTemplate[]
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\Signature[] findSignatures($filter, $sort, $offset, $limit)
Gets signatures
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$filter = "filter_example"; // string | A list of fields and values to filter by, in query string format eg. 'type=order&status=1'
$sort = "sort_example"; // string | A comma-separated list of fields to sort by
$offset = 56; // int | The start offset of the result set
$limit = 56; // int | Max records to return
try {
$result = $api_instance->findSignatures($filter, $sort, $offset, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->findSignatures: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
filter | string | A list of fields and values to filter by, in query string format eg. 'type=order&status=1' | [optional] |
sort | string | A comma-separated list of fields to sort by | [optional] |
offset | int | The start offset of the result set | [optional] |
limit | int | Max records to return | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\Snippet[] findSnippets($filter, $sort, $offset, $limit)
Gets snippets
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$filter = "filter_example"; // string | A list of fields and values to filter by, in query string format eg. 'type=order&status=1'
$sort = "sort_example"; // string | A comma-separated list of fields to sort by
$offset = 56; // int | The start offset of the result set
$limit = 56; // int | Max records to return
try {
$result = $api_instance->findSnippets($filter, $sort, $offset, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->findSnippets: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
filter | string | A list of fields and values to filter by, in query string format eg. 'type=order&status=1' | [optional] |
sort | string | A comma-separated list of fields to sort by | [optional] |
offset | int | The start offset of the result set | [optional] |
limit | int | Max records to return | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\Template[] findTemplates($filter, $sort, $offset, $limit)
Gets templates
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$filter = "filter_example"; // string | A list of fields and values to filter by, in query string format eg. 'type=order&status=1'
$sort = "sort_example"; // string | A comma-separated list of fields to sort by
$offset = 56; // int | The start offset of the result set
$limit = 56; // int | Max records to return
try {
$result = $api_instance->findTemplates($filter, $sort, $offset, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->findTemplates: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
filter | string | A list of fields and values to filter by, in query string format eg. 'type=order&status=1' | [optional] |
sort | string | A comma-separated list of fields to sort by | [optional] |
offset | int | The start offset of the result set | [optional] |
limit | int | Max records to return | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\User[] findUsers($filter, $sort, $offset, $limit)
Gets users
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$filter = "filter_example"; // string | A list of fields and values to filter by, in query string format eg. 'type=order&status=1'
$sort = "sort_example"; // string | A comma-separated list of fields to sort by
$offset = 56; // int | The start offset of the result set
$limit = 56; // int | Max records to return
try {
$result = $api_instance->findUsers($filter, $sort, $offset, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->findUsers: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
filter | string | A list of fields and values to filter by, in query string format eg. 'type=order&status=1' | [optional] |
sort | string | A comma-separated list of fields to sort by | [optional] |
offset | int | The start offset of the result set | [optional] |
limit | int | Max records to return | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
generateAddressAuthCode($data)
Generates a one-time auth code for an address
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Squiggle\Api\DefaultApi();
$data = new \Squiggle\Model\AuthCodeRequest(); // \Squiggle\Model\AuthCodeRequest |
try {
$api_instance->generateAddressAuthCode($data);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->generateAddressAuthCode: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
data | \Squiggle\Model\AuthCodeRequest |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\AuthCode generateAddressAuthCodeById($id)
Generates a one-time auth code for an address
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of address
try {
$result = $api_instance->generateAddressAuthCodeById($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->generateAddressAuthCodeById: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of address |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\Address getAddress($id)
Gets an address with the specified ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of address to get
try {
$result = $api_instance->getAddress($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getAddress: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of address to get |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\JSONWebToken getAddressToken($data)
Request JWT for Address
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Squiggle\Api\DefaultApi();
$data = new \Squiggle\Model\LoginDetails(); // \Squiggle\Model\LoginDetails |
try {
$result = $api_instance->getAddressToken($data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getAddressToken: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
data | \Squiggle\Model\LoginDetails |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\FileObject getFile($id)
Gets a file with the specified ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of file to get
try {
$result = $api_instance->getFile($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getFile: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of file to get |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\GlobalTemplate getGlobalTemplate($id)
Gets a global template with the specified ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of global template to get
try {
$result = $api_instance->getGlobalTemplate($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getGlobalTemplate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of global template to get |
\Squiggle\Model\GlobalTemplate
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\ImageInfo getImage($id, $width, $height, $mode)
Gets an image, resizes if necessary and returns the resulting url and dimensions
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of file to get
$width = 56; // int | Image resize width
$height = 56; // int | Image resize height
$mode = "fit"; // string | Image resize mode ('fit', 'fill' or 'contain'). Default is 'fit'. Only relevant when width or height is specified
try {
$result = $api_instance->getImage($id, $width, $height, $mode);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getImage: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of file to get | |
width | int | Image resize width | [optional] |
height | int | Image resize height | [optional] |
mode | string | Image resize mode ('fit', 'fill' or 'contain'). Default is 'fit'. Only relevant when width or height is specified | [optional] [default to fit] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\Signature getSignature($id)
Gets a signature with the specified ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of signature to get
try {
$result = $api_instance->getSignature($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getSignature: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of signature to get |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\Snippet getSnippet($id)
Gets a snippet with the specified ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of snippet to get
try {
$result = $api_instance->getSnippet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getSnippet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of snippet to get |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\Template getTemplate($id)
Gets a template with the specified ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of template to get
try {
$result = $api_instance->getTemplate($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getTemplate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of template to get |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\User getUser($id)
Gets a user with the specified ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$id = 789; // int | ID of user to get
try {
$result = $api_instance->getUser($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getUser: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of user to get |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Squiggle\Model\JSONWebToken getUserToken($data)
Request JWT for User
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Squiggle\Api\DefaultApi();
$data = new \Squiggle\Model\LoginDetails(); // \Squiggle\Model\LoginDetails |
try {
$result = $api_instance->getUserToken($data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getUserToken: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
data | \Squiggle\Model\LoginDetails |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string render($opts)
Renders a template
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure 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();
$opts = new \Squiggle\Model\RenderOptions(); // \Squiggle\Model\RenderOptions |
try {
$result = $api_instance->render($opts);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->render: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
opts | \Squiggle\Model\RenderOptions |
string
- Content-Type: application/json
- Accept: text/html, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]