Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.83 KB

IpApi.md

File metadata and controls

59 lines (41 loc) · 1.83 KB

Swagger\Client\IpApi

All URIs are relative to https://rest.paycomet.com

Method HTTP request Description
getCountrybyIP POST /v1/ip Retrieves country info by IP

getCountrybyIP

\Swagger\Client\Model\InlineResponse2009 getCountrybyIP($body, $paycomet_api_token)

Retrieves country info by IP

Country by IP

Example

<?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;
}
?>

Parameters

Name Type Description Notes
body \Swagger\Client\Model\V1IpBody [optional]
paycomet_api_token string PAYCOMET API key (Query privilege required) [optional]

Return type

\Swagger\Client\Model\InlineResponse2009

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]