All URIs are relative to https://rest.paycomet.com
Method | HTTP request | Description |
---|---|---|
getCountrybyIP | POST /v1/ip | Retrieves country info by IP |
\Swagger\Client\Model\InlineResponse2009 getCountrybyIP($body, $paycomet_api_token)
Retrieves country info by IP
Country by IP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\IpApi(
// 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()
);
$body = new \Swagger\Client\Model\V1IpBody(); // \Swagger\Client\Model\V1IpBody |
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Query privilege required)
try {
$result = $apiInstance->getCountrybyIP($body, $paycomet_api_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling IpApi->getCountrybyIP: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Swagger\Client\Model\V1IpBody | [optional] | |
paycomet_api_token | string | PAYCOMET API key (Query privilege required) | [optional] |
\Swagger\Client\Model\InlineResponse2009
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]