All URIs are relative to https://restapi.fax.plus/v1
Method | HTTP request | Description |
---|---|---|
getAccounts | GET /accounts | Get account information of all members of your corporate account |
getMemberDetails | GET /accounts/self/member-details/{member_id} | Get member details |
getUser | GET /accounts/{user_id} | Get account information for admin or member |
updateMemberDetails | PUT /accounts/self/member-details/{member_id} | Modify member details |
updateUser | PUT /accounts/self | Modify account information |
\faxplus\model\ResponseAccountList getAccounts()
Get account information of all members of your corporate account
Only admin account can send request to this endpoint which returns accounts of all members
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: fax_oauth
$config = faxplus\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new faxplus\Api\AccountsApi(
// 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->getAccounts();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountsApi->getAccounts: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\faxplus\model\ResponseAccountList
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\faxplus\model\MemberDetail getMemberDetails($member_id)
Get member details
Get your member details (quota and role)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: fax_oauth
$config = faxplus\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new faxplus\Api\AccountsApi(
// 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
);
$member_id = "member_id_example"; // string |
try {
$result = $apiInstance->getMemberDetails($member_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountsApi->getMemberDetails: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
member_id | string |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\faxplus\model\Account getUser($user_id)
Get account information for admin or member
Get account information. For members user_id can only be self. form admin it can be user_id of any
In case you want to get your own account information please use self
as an alias for your user_id.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: fax_oauth
$config = faxplus\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new faxplus\Api\AccountsApi(
// 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
);
$user_id = "user_id_example"; // string |
try {
$result = $apiInstance->getUser($user_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountsApi->getUser: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
user_id | string |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateMemberDetails($member_id, $payload_member_detail)
Modify member details
One of the paramters below is needed to modify member information
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: fax_oauth
$config = faxplus\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new faxplus\Api\AccountsApi(
// 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
);
$member_id = "member_id_example"; // string |
$payload_member_detail = new \faxplus\model\MemberDetail(); // \faxplus\model\MemberDetail |
try {
$apiInstance->updateMemberDetails($member_id, $payload_member_detail);
} catch (Exception $e) {
echo 'Exception when calling AccountsApi->updateMemberDetails: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
member_id | string | ||
payload_member_detail | \faxplus\model\MemberDetail |
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]
updateUser($user_id, $payload_account)
Modify account information
You can only modify your account
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: fax_oauth
$config = faxplus\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new faxplus\Api\AccountsApi(
// 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
);
$user_id = "user_id_example"; // string |
$payload_account = new \faxplus\model\Account(); // \faxplus\model\Account |
try {
$apiInstance->updateUser($user_id, $payload_account);
} catch (Exception $e) {
echo 'Exception when calling AccountsApi->updateUser: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
user_id | string | ||
payload_account | \faxplus\model\Account |
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]