All URIs are relative to https://slingshot.egoiapp.com/api/
Method | HTTP request | Description |
---|---|---|
addApp | POST /v2/apps | Create App |
addPushTemplate | POST /v2/push/templates | Create Push Template |
deleteApp | DELETE /v2/apps/{id} | Remove App |
deletePushTemplate | DELETE /v2/push/templates/{id} | Remove Push Template |
listApp | GET /v2/apps/{id} | Get an App |
listApps | GET /v2/apps | Get All Apps |
listPushTemplate | GET /v2/push/templates/{id} | Get an Push Template |
listPushTemplates | GET /v2/push/templates | Get All Push Templates |
sendPushMessages | POST /v2/push/messages/action/send | Send a Push Message |
updateApp | PUT /v2/apps/{id} | Update App |
updatePushTemplate | PATCH /v2/push/templates/{id} | Update Push Template |
\Swagger\Client\Model\TemplateIdResponse addApp($body)
Create App
Creates a new App
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ApiKey', 'Bearer');
$apiInstance = new Swagger\Client\Api\PushApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \Swagger\Client\Model\MobileAppRequest(); // \Swagger\Client\Model\MobileAppRequest |
try {
$result = $apiInstance->addApp($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PushApi->addApp: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Swagger\Client\Model\MobileAppRequest | [optional] |
\Swagger\Client\Model\TemplateIdResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\TemplateIdResponse addPushTemplate($body)
Create Push Template
Creates a new template record for Push
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ApiKey', 'Bearer');
$apiInstance = new Swagger\Client\Api\PushApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \Swagger\Client\Model\PushTemplateRequest(); // \Swagger\Client\Model\PushTemplateRequest |
try {
$result = $apiInstance->addPushTemplate($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PushApi->addPushTemplate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Swagger\Client\Model\PushTemplateRequest | [optional] |
\Swagger\Client\Model\TemplateIdResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteApp($id)
Remove App
Remove App
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ApiKey', 'Bearer');
$apiInstance = new Swagger\Client\Api\PushApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the app. Cannot be empty.
try {
$apiInstance->deleteApp($id);
} catch (Exception $e) {
echo 'Exception when calling PushApi->deleteApp: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | Id of the app. Cannot be empty. |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deletePushTemplate($id)
Remove Push Template
Remove Push Template
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ApiKey', 'Bearer');
$apiInstance = new Swagger\Client\Api\PushApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the Push Template. Cannot be empty.
try {
$apiInstance->deletePushTemplate($id);
} catch (Exception $e) {
echo 'Exception when calling PushApi->deletePushTemplate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | Id of the Push Template. Cannot be empty. |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\MobileAppIdResponse listApp($id)
Get an App
Gets an App
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ApiKey', 'Bearer');
$apiInstance = new Swagger\Client\Api\PushApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the App. Cannot be empty.
try {
$result = $apiInstance->listApp($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PushApi->listApp: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | Id of the App. Cannot be empty. |
\Swagger\Client\Model\MobileAppIdResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\MobileAppResponse[] listApps()
Get All Apps
Obtains all the Apps
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ApiKey', 'Bearer');
$apiInstance = new Swagger\Client\Api\PushApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->listApps();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PushApi->listApps: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\Swagger\Client\Model\MobileAppResponse[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\SinglePushTemplateResponse listPushTemplate($id)
Get an Push Template
Gets an Push Template
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ApiKey', 'Bearer');
$apiInstance = new Swagger\Client\Api\PushApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the Push Template. Cannot be empty.
try {
$result = $apiInstance->listPushTemplate($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PushApi->listPushTemplate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | Id of the Push Template. Cannot be empty. |
\Swagger\Client\Model\SinglePushTemplateResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\SinglePushTemplateResponse[] listPushTemplates()
Get All Push Templates
Obtains all the Push templates
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ApiKey', 'Bearer');
$apiInstance = new Swagger\Client\Api\PushApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->listPushTemplates();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PushApi->listPushTemplates: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\Swagger\Client\Model\SinglePushTemplateResponse[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\SendMessageIdResponse[] sendPushMessages($body)
Send a Push Message
Send an push message to a recipient
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ApiKey', 'Bearer');
$apiInstance = new Swagger\Client\Api\PushApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = array(new \stdClass); // object[] | default response
try {
$result = $apiInstance->sendPushMessages($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PushApi->sendPushMessages: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | object[] | default response | [optional] |
\Swagger\Client\Model\SendMessageIdResponse[]
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\MobileAppIdResponse updateApp($id, $body)
Update App
Updates an App, given a template id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ApiKey', 'Bearer');
$apiInstance = new Swagger\Client\Api\PushApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the Push Template. Cannot be empty.
$body = new \Swagger\Client\Model\MobileAppRequest(); // \Swagger\Client\Model\MobileAppRequest |
try {
$result = $apiInstance->updateApp($id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PushApi->updateApp: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | Id of the Push Template. Cannot be empty. | |
body | \Swagger\Client\Model\MobileAppRequest | [optional] |
\Swagger\Client\Model\MobileAppIdResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\SinglePushTemplateResponse updatePushTemplate($id, $body)
Update Push Template
Updates an Push template, given a template id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ApiKey', 'Bearer');
$apiInstance = new Swagger\Client\Api\PushApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the Push Template. Cannot be empty.
$body = new \Swagger\Client\Model\PushTemplateRequest(); // \Swagger\Client\Model\PushTemplateRequest |
try {
$result = $apiInstance->updatePushTemplate($id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PushApi->updatePushTemplate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | Id of the Push Template. Cannot be empty. | |
body | \Swagger\Client\Model\PushTemplateRequest | [optional] |
\Swagger\Client\Model\SinglePushTemplateResponse
- Content-Type: /
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]