All URIs are relative to http://127.0.0.1:21011
Method | HTTP request | Description |
---|---|---|
customerServiceCreateCustomer | POST /v1/customers | |
customerServiceDeleteCustomer | DELETE /v1/customers/{id} | |
customerServiceListAllCustomers | GET /v1/customers | |
customerServiceRetrieveCustomer | GET /v1/customers/{id} | |
customerServiceSearchCustomers | GET /v1/customers/search | |
customerServiceUpdateCustomer | POST /v1/customers/{id} |
\Justapnet\Justap\Model\V1CustomerResponse customerServiceCreateCustomer($body)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = Justapnet\Justap\Configuration::getDefaultConfiguration()->setApiKey('X-JUSTAP-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Justapnet\Justap\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-JUSTAP-API-KEY', 'Bearer');
$apiInstance = new Justapnet\Justap\Api\CustomerServiceApi(
// 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 \Justapnet\Justap\Model\V1CreateCustomerRequest(); // \Justapnet\Justap\Model\V1CreateCustomerRequest |
try {
$result = $apiInstance->customerServiceCreateCustomer($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomerServiceApi->customerServiceCreateCustomer: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Justapnet\Justap\Model\V1CreateCustomerRequest |
\Justapnet\Justap\Model\V1CustomerResponse
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Justapnet\Justap\Model\V1DeleteCustomerResponse customerServiceDeleteCustomer($id, $app_id)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = Justapnet\Justap\Configuration::getDefaultConfiguration()->setApiKey('X-JUSTAP-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Justapnet\Justap\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-JUSTAP-API-KEY', 'Bearer');
$apiInstance = new Justapnet\Justap\Api\CustomerServiceApi(
// 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 |
$app_id = "app_id_example"; // string |
try {
$result = $apiInstance->customerServiceDeleteCustomer($id, $app_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomerServiceApi->customerServiceDeleteCustomer: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | ||
app_id | string | [optional] |
\Justapnet\Justap\Model\V1DeleteCustomerResponse
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Justapnet\Justap\Model\V1CustomerListResponse customerServiceListAllCustomers($app_id, $limit, $starting_after, $ending_before, $created_lt, $created_lte, $created_gt, $created_gte, $disabled)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = Justapnet\Justap\Configuration::getDefaultConfiguration()->setApiKey('X-JUSTAP-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Justapnet\Justap\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-JUSTAP-API-KEY', 'Bearer');
$apiInstance = new Justapnet\Justap\Api\CustomerServiceApi(
// 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
);
$app_id = "app_id_example"; // string |
$limit = 10; // int | [OPTIONAL] 限制有多少对象可以被返回,限制范围是从 1~100 项,默认是 10 项
$starting_after = "starting_after_example"; // string | [OPTIONAL] 在分页时使用的指针,决定了列表的第一项从何处开始。假设你的一次请求返回列表的最后一项的 id 是 obj_end,你可以使用 starting_after = obj_end 去获取下一页
$ending_before = "ending_before_example"; // string | [OPTIONAL] 在分页时使用的指针,决定了列表的最末项在何处结束。假设你的一次请求返回列表的第一项的 id 是 obj_start,你可以使用 ending_before = obj_start 去获取上一页
$created_lt = 0; // int | 大于 charge 对象的创建时间,用 Unix 时间戳表示
$created_lte = 0; // int | 大于或等于 charge 对象的创建时间,用 Unix 时间戳表示
$created_gt = 0; // int | 小于 charge 对象的创建时间,用 Unix 时间戳表示
$created_gte = 0; // int | 小于或等于 charge 对象的创建时间,用 Unix 时间戳表示
$disabled = true; // bool | [OPTIONAL] 是否禁用,默认为 false
try {
$result = $apiInstance->customerServiceListAllCustomers($app_id, $limit, $starting_after, $ending_before, $created_lt, $created_lte, $created_gt, $created_gte, $disabled);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomerServiceApi->customerServiceListAllCustomers: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
app_id | string | [optional] | |
limit | int | [OPTIONAL] 限制有多少对象可以被返回,限制范围是从 1~100 项,默认是 10 项 | [optional] [default to 10] |
starting_after | string | [OPTIONAL] 在分页时使用的指针,决定了列表的第一项从何处开始。假设你的一次请求返回列表的最后一项的 id 是 obj_end,你可以使用 starting_after = obj_end 去获取下一页 | [optional] |
ending_before | string | [OPTIONAL] 在分页时使用的指针,决定了列表的最末项在何处结束。假设你的一次请求返回列表的第一项的 id 是 obj_start,你可以使用 ending_before = obj_start 去获取上一页 | [optional] |
created_lt | int | 大于 charge 对象的创建时间,用 Unix 时间戳表示 | [optional] [default to 0] |
created_lte | int | 大于或等于 charge 对象的创建时间,用 Unix 时间戳表示 | [optional] [default to 0] |
created_gt | int | 小于 charge 对象的创建时间,用 Unix 时间戳表示 | [optional] [default to 0] |
created_gte | int | 小于或等于 charge 对象的创建时间,用 Unix 时间戳表示 | [optional] [default to 0] |
disabled | bool | [OPTIONAL] 是否禁用,默认为 false | [optional] |
\Justapnet\Justap\Model\V1CustomerListResponse
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Justapnet\Justap\Model\V1CustomerResponse customerServiceRetrieveCustomer($id, $app_id)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = Justapnet\Justap\Configuration::getDefaultConfiguration()->setApiKey('X-JUSTAP-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Justapnet\Justap\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-JUSTAP-API-KEY', 'Bearer');
$apiInstance = new Justapnet\Justap\Api\CustomerServiceApi(
// 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 |
$app_id = "app_id_example"; // string |
try {
$result = $apiInstance->customerServiceRetrieveCustomer($id, $app_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomerServiceApi->customerServiceRetrieveCustomer: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | ||
app_id | string | [optional] |
\Justapnet\Justap\Model\V1CustomerResponse
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Justapnet\Justap\Model\V1CustomerListResponse customerServiceSearchCustomers($app_id, $limit, $created_lt, $created_lte, $created_gt, $created_gte, $email, $name, $phone)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = Justapnet\Justap\Configuration::getDefaultConfiguration()->setApiKey('X-JUSTAP-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Justapnet\Justap\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-JUSTAP-API-KEY', 'Bearer');
$apiInstance = new Justapnet\Justap\Api\CustomerServiceApi(
// 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
);
$app_id = "app_id_example"; // string |
$limit = 10; // int | [OPTIONAL] 限制有多少对象可以被返回,限制范围是从 1~100 项,默认是 10 项
$created_lt = 0; // int | 大于 BusinessUser 对象的创建时间,用 Unix 时间戳表示
$created_lte = 0; // int | 大于或等于 BusinessUser 对象的创建时间,用 Unix 时间戳表示
$created_gt = 0; // int | 小于 BusinessUser 对象的创建时间,用 Unix 时间戳表示
$created_gte = 0; // int | 小于或等于 BusinessUser 对象的创建时间,用 Unix 时间戳表示
$email = "email_example"; // string | [OPTIONAL] BusinessUser 对象的邮箱地址。支持模糊匹配
$name = "name_example"; // string | [OPTIONAL] BusinessUser 对象的用户名。支持模糊匹配
$phone = "phone_example"; // string | [OPTIONAL] BusinessUser 对象的手机号码
try {
$result = $apiInstance->customerServiceSearchCustomers($app_id, $limit, $created_lt, $created_lte, $created_gt, $created_gte, $email, $name, $phone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomerServiceApi->customerServiceSearchCustomers: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
app_id | string | [optional] | |
limit | int | [OPTIONAL] 限制有多少对象可以被返回,限制范围是从 1~100 项,默认是 10 项 | [optional] [default to 10] |
created_lt | int | 大于 BusinessUser 对象的创建时间,用 Unix 时间戳表示 | [optional] [default to 0] |
created_lte | int | 大于或等于 BusinessUser 对象的创建时间,用 Unix 时间戳表示 | [optional] [default to 0] |
created_gt | int | 小于 BusinessUser 对象的创建时间,用 Unix 时间戳表示 | [optional] [default to 0] |
created_gte | int | 小于或等于 BusinessUser 对象的创建时间,用 Unix 时间戳表示 | [optional] [default to 0] |
string | [OPTIONAL] BusinessUser 对象的邮箱地址。支持模糊匹配 | [optional] | |
name | string | [OPTIONAL] BusinessUser 对象的用户名。支持模糊匹配 | [optional] |
phone | string | [OPTIONAL] BusinessUser 对象的手机号码 | [optional] |
\Justapnet\Justap\Model\V1CustomerListResponse
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Justapnet\Justap\Model\V1CustomerResponse customerServiceUpdateCustomer($id)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = Justapnet\Justap\Configuration::getDefaultConfiguration()->setApiKey('X-JUSTAP-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Justapnet\Justap\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-JUSTAP-API-KEY', 'Bearer');
$apiInstance = new Justapnet\Justap\Api\CustomerServiceApi(
// 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 |
try {
$result = $apiInstance->customerServiceUpdateCustomer($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomerServiceApi->customerServiceUpdateCustomer: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string |
\Justapnet\Justap\Model\V1CustomerResponse
[Back to top] [Back to API list] [Back to Model list] [Back to README]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。