All URIs are relative to http://api.getsirena.com/v1
Method | HTTP request | Description |
---|---|---|
getCategories | GET /leads/categories | |
getDefaults | GET /leads/defaults | |
newInsuranceLead | POST /lead/insurance | |
newRetailLead | POST /lead/retail | |
newSavingPlanLead | POST /lead/saving-plan | |
newVehicleLead | POST /lead/vehicle |
\Swagger\Client\Model\CategoriesByIndustry getCategories()
Returns information about the lead categories available for lead creation in each industry. The response includes the name and other details about each category. The default category is returned first.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// Configure OAuth2 access token for authorization: OAuth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new Swagger\Client\Api\LeadsApi();
try {
$result = $api_instance->getCategories();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LeadsApi->getCategories: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\Swagger\Client\Model\CategoriesByIndustry
- Content-Type: application/json
- Accept: application/json, text/csv, text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Defaults getDefaults()
Returns information about the applicable defaults for lead creation. These defaults are only used if no value is specified when creating a lead. The response includes the default currency and category (by industry). Note that the default category can also be found using the Categories endpoint.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// Configure OAuth2 access token for authorization: OAuth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new Swagger\Client\Api\LeadsApi();
try {
$result = $api_instance->getDefaults();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LeadsApi->getDefaults: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\Swagger\Client\Model\Defaults
- Content-Type: application/json
- Accept: application/json, text/csv, text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Prospect newInsuranceLead($lead, $format)
Processes lead data and returns the matching prospect. If the prospect already exists, previous lead data will not be returned.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// Configure OAuth2 access token for authorization: OAuth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new Swagger\Client\Api\LeadsApi();
$lead = new \Swagger\Client\Model\Product(); // \Swagger\Client\Model\Product |
$format = "format_example"; // string | An optional flag to force a response format. Note that the API also supports content negotiation and honors the Accept header.
try {
$result = $api_instance->newInsuranceLead($lead, $format);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LeadsApi->newInsuranceLead: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
lead | \Swagger\Client\Model\Product | ||
format | string | An optional flag to force a response format. Note that the API also supports content negotiation and honors the Accept header. | [optional] |
\Swagger\Client\Model\Prospect
- Content-Type: application/json
- Accept: application/json, text/csv, text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Prospect newRetailLead($lead, $format)
Processes lead data and returns the matching prospect. If the prospect already exists, previous lead data will not be returned.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// Configure OAuth2 access token for authorization: OAuth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new Swagger\Client\Api\LeadsApi();
$lead = new \Swagger\Client\Model\Lead(); // \Swagger\Client\Model\Lead |
$format = "format_example"; // string | An optional flag to force a response format. Note that the API also supports content negotiation and honors the Accept header.
try {
$result = $api_instance->newRetailLead($lead, $format);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LeadsApi->newRetailLead: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
lead | \Swagger\Client\Model\Lead | ||
format | string | An optional flag to force a response format. Note that the API also supports content negotiation and honors the Accept header. | [optional] |
\Swagger\Client\Model\Prospect
- Content-Type: application/json
- Accept: application/json, text/csv, text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Prospect newSavingPlanLead($lead, $format)
Saving plan industry only. Processes lead data and returns the matching prospect. If the prospect already exists, previous lead data will not be returned.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// Configure OAuth2 access token for authorization: OAuth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new Swagger\Client\Api\LeadsApi();
$lead = new \Swagger\Client\Model\SavingPlanLead(); // \Swagger\Client\Model\SavingPlanLead |
$format = "format_example"; // string | An optional flag to force a response format. Note that the API also supports content negotiation and honors the Accept header.
try {
$result = $api_instance->newSavingPlanLead($lead, $format);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LeadsApi->newSavingPlanLead: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
lead | \Swagger\Client\Model\SavingPlanLead | ||
format | string | An optional flag to force a response format. Note that the API also supports content negotiation and honors the Accept header. | [optional] |
\Swagger\Client\Model\Prospect
- Content-Type: application/json
- Accept: application/json, text/csv, text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Prospect newVehicleLead($lead, $format)
Vehicle industry only. Processes lead data and returns the matching prospect. If the prospect already exists, previous lead data will not be returned.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// Configure OAuth2 access token for authorization: OAuth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new Swagger\Client\Api\LeadsApi();
$lead = new \Swagger\Client\Model\VehicleLead(); // \Swagger\Client\Model\VehicleLead |
$format = "format_example"; // string | An optional flag to force a response format. Note that the API also supports content negotiation and honors the Accept header.
try {
$result = $api_instance->newVehicleLead($lead, $format);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LeadsApi->newVehicleLead: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
lead | \Swagger\Client\Model\VehicleLead | ||
format | string | An optional flag to force a response format. Note that the API also supports content negotiation and honors the Accept header. | [optional] |
\Swagger\Client\Model\Prospect
- Content-Type: application/json
- Accept: application/json, text/csv, text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]