All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
deleteInterestCategory | DELETE /api/v1/interests/categories/{id} | Tries to delete an Interest Category based on the provided id |
getInterestCategories | GET /api/v1/interests/categories | Get the interest Categories |
getInterestCategory | GET /api/v1/interests/categories/{id} | Retrieves a specific interest category based on the provided id |
getInterestCategoryGroups | GET /api/v1/interests/groups | Get the interest Category Groups |
patchInterestCategory | PATCH /api/v1/interests/categories/{id} | Tries to patch an Interest Category with the provided properties |
postInterestCategory | POST /api/v1/interests/categories | Tries to create a new Interest Category |
putInterestCategory | PUT /api/v1/interests/categories/{id} | Tries to update an Interest Category |
deleteInterestCategory($id, $token)
Tries to delete an Interest Category based on the provided id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Membercare\Client\Api\InterestsApi(
// 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()
);
$id = 789; // int |
$token = "token_example"; // string | access token
try {
$apiInstance->deleteInterestCategory($id, $token);
} catch (Exception $e) {
echo 'Exception when calling InterestsApi->deleteInterestCategory: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
token | string | access token |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Membercare\Client\Model\InterestCategoryPagedResult getInterestCategories($token, $page, $page_size)
Get the interest Categories
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Membercare\Client\Api\InterestsApi(
// 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()
);
$token = "token_example"; // string | access token
$page = 1; // int | Optional, represents the page you wish to see, starting at 1.
$page_size = 50; // int | Optional, represents the amount of interests to display per paged result.
try {
$result = $apiInstance->getInterestCategories($token, $page, $page_size);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InterestsApi->getInterestCategories: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
token | string | access token | |
page | int | Optional, represents the page you wish to see, starting at 1. | [optional] [default to 1] |
page_size | int | Optional, represents the amount of interests to display per paged result. | [optional] [default to 50] |
\Membercare\Client\Model\InterestCategoryPagedResult
No authorization required
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Membercare\Client\Model\InterestCategory getInterestCategory($id, $token)
Retrieves a specific interest category based on the provided id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Membercare\Client\Api\InterestsApi(
// 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()
);
$id = 789; // int |
$token = "token_example"; // string | access token
try {
$result = $apiInstance->getInterestCategory($id, $token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InterestsApi->getInterestCategory: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
token | string | access token |
\Membercare\Client\Model\InterestCategory
No authorization required
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Membercare\Client\Model\InterestCategoryGroupPagedResult getInterestCategoryGroups($token, $page, $page_size)
Get the interest Category Groups
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Membercare\Client\Api\InterestsApi(
// 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()
);
$token = "token_example"; // string | access token
$page = 1; // int | Optional, represents the page you wish to see, starting at 1.
$page_size = 50; // int | Optional, represents the amount of interests to display per paged result.
try {
$result = $apiInstance->getInterestCategoryGroups($token, $page, $page_size);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InterestsApi->getInterestCategoryGroups: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
token | string | access token | |
page | int | Optional, represents the page you wish to see, starting at 1. | [optional] [default to 1] |
page_size | int | Optional, represents the amount of interests to display per paged result. | [optional] [default to 50] |
\Membercare\Client\Model\InterestCategoryGroupPagedResult
No authorization required
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
patchInterestCategory($token, $id, $body)
Tries to patch an Interest Category with the provided properties
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Membercare\Client\Api\InterestsApi(
// 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()
);
$token = "token_example"; // string | access token
$id = 789; // int |
$body = new \Membercare\Client\Model\InterestCategoryPatch(); // \Membercare\Client\Model\InterestCategoryPatch |
try {
$apiInstance->patchInterestCategory($token, $id, $body);
} catch (Exception $e) {
echo 'Exception when calling InterestsApi->patchInterestCategory: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
token | string | access token | |
id | int | ||
body | \Membercare\Client\Model\InterestCategoryPatch | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json, text/json, application/_*+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Membercare\Client\Model\InterestCategory postInterestCategory($token, $body)
Tries to create a new Interest Category
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Membercare\Client\Api\InterestsApi(
// 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()
);
$token = "token_example"; // string | access token
$body = new \Membercare\Client\Model\InterestCategoryPost(); // \Membercare\Client\Model\InterestCategoryPost |
try {
$result = $apiInstance->postInterestCategory($token, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InterestsApi->postInterestCategory: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
token | string | access token | |
body | \Membercare\Client\Model\InterestCategoryPost | [optional] |
\Membercare\Client\Model\InterestCategory
No authorization required
- Content-Type: application/json, text/json, application/_*+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
putInterestCategory($token, $id, $body)
Tries to update an Interest Category
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Membercare\Client\Api\InterestsApi(
// 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()
);
$token = "token_example"; // string | access token
$id = 789; // int |
$body = new \Membercare\Client\Model\InterestCategoryPut(); // \Membercare\Client\Model\InterestCategoryPut |
try {
$apiInstance->putInterestCategory($token, $id, $body);
} catch (Exception $e) {
echo 'Exception when calling InterestsApi->putInterestCategory: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
token | string | access token | |
id | int | ||
body | \Membercare\Client\Model\InterestCategoryPut | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json, text/json, application/_*+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]