All URIs are relative to https://api.securevan.com/v4
Method | HTTP request | Description |
---|---|---|
echoesPost | POST /echoes | Hello world |
events4306Get | GET /events/4306 | Get event details |
people100879417CanvassResponsesPost | POST /people/100879417/canvassResponses | Collect canvass data |
peopleFindOrCreatePost | POST /people/findOrCreate | Create a volunteer record |
signupsPost | POST /signups | RSVP to an event |
echoesPost($content_type, $body)
Hello world
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: auth
$config = NGP\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new NGP\Api\MiscApi(
// 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
);
$content_type = "content_type_example"; // string |
$body = new \NGP\Model\HelloworldRequest(); // \NGP\Model\HelloworldRequest |
try {
$apiInstance->echoesPost($content_type, $body);
} catch (Exception $e) {
echo 'Exception when calling MiscApi->echoesPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
content_type | string | ||
body | \NGP\Model\HelloworldRequest |
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]
events4306Get($expand, $authorization)
Get event details
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: auth
$config = NGP\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new NGP\Api\MiscApi(
// 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
);
$expand = "expand_example"; // string |
$authorization = "authorization_example"; // string |
try {
$apiInstance->events4306Get($expand, $authorization);
} catch (Exception $e) {
echo 'Exception when calling MiscApi->events4306Get: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
expand | string | ||
authorization | string |
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]
people100879417CanvassResponsesPost($content_type, $authorization, $body)
Collect canvass data
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: auth
$config = NGP\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new NGP\Api\MiscApi(
// 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
);
$content_type = "content_type_example"; // string |
$authorization = "authorization_example"; // string |
$body = new \NGP\Model\CollectcanvassdataRequest(); // \NGP\Model\CollectcanvassdataRequest |
try {
$apiInstance->people100879417CanvassResponsesPost($content_type, $authorization, $body);
} catch (Exception $e) {
echo 'Exception when calling MiscApi->people100879417CanvassResponsesPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
content_type | string | ||
authorization | string | ||
body | \NGP\Model\CollectcanvassdataRequest |
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]
peopleFindOrCreatePost($content_type, $authorization, $body)
Create a volunteer record
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: auth
$config = NGP\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new NGP\Api\MiscApi(
// 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
);
$content_type = "content_type_example"; // string |
$authorization = "authorization_example"; // string |
$body = new \NGP\Model\CreateavolunteerrecordRequest(); // \NGP\Model\CreateavolunteerrecordRequest |
try {
$apiInstance->peopleFindOrCreatePost($content_type, $authorization, $body);
} catch (Exception $e) {
echo 'Exception when calling MiscApi->peopleFindOrCreatePost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
content_type | string | ||
authorization | string | ||
body | \NGP\Model\CreateavolunteerrecordRequest |
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]
signupsPost($content_type, $authorization, $body)
RSVP to an event
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: auth
$config = NGP\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new NGP\Api\MiscApi(
// 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
);
$content_type = "content_type_example"; // string |
$authorization = "authorization_example"; // string |
$body = new \NGP\Model\RSVPtoaneventRequest(); // \NGP\Model\RSVPtoaneventRequest |
try {
$apiInstance->signupsPost($content_type, $authorization, $body);
} catch (Exception $e) {
echo 'Exception when calling MiscApi->signupsPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
content_type | string | ||
authorization | string | ||
body | \NGP\Model\RSVPtoaneventRequest |
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]