Sha256: af8452b2a5af49ce1db6302ee78000a15ac4b559acb4c510d9e7064ba1648a43

Contents?: true

Size: 1.89 KB

Versions: 8

Compression:

Stored size: 1.89 KB

Contents

# CloudmersiveValidateApiClient::IPAddressApi

All URIs are relative to *https://api.cloudmersive.com*

Method | HTTP request | Description
------------- | ------------- | -------------
[**i_p_address_post**](IPAddressApi.md#i_p_address_post) | **POST** /validate/ip/geolocate | Geolocate an IP address


# **i_p_address_post**
> GeolocateResponse i_p_address_post(value)

Geolocate an IP address

Identify an IP address Country, State/Provence, City, Zip/Postal Code, etc.  Useful for security and UX applications.

### Example
```ruby
# load the gem
require 'cloudmersive-validate-api-client'
# setup authorization
CloudmersiveValidateApiClient.configure do |config|
  # Configure API key authorization: Apikey
  config.api_key['Apikey'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['Apikey'] = 'Bearer'
end

api_instance = CloudmersiveValidateApiClient::IPAddressApi.new

value = "value_example" # String | IP address to geolocate, e.g. \"55.55.55.55\".  The input is a string so be sure to enclose it in double-quotes.


begin
  #Geolocate an IP address
  result = api_instance.i_p_address_post(value)
  p result
rescue CloudmersiveValidateApiClient::ApiError => e
  puts "Exception when calling IPAddressApi->i_p_address_post: #{e}"
end
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **value** | **String**| IP address to geolocate, e.g. \"55.55.55.55\".  The input is a string so be sure to enclose it in double-quotes. | 

### Return type

[**GeolocateResponse**](GeolocateResponse.md)

### Authorization

[Apikey](../README.md#Apikey)

### HTTP request headers

 - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
 - **Accept**: application/json, text/json, application/xml, text/xml



Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cloudmersive-validate-api-client-1.3.7 ./docs/IPAddressApi.md
cloudmersive-validate-api-client-1.3.6 ./docs/IPAddressApi.md
cloudmersive-validate-api-client-1.3.5 ./docs/IPAddressApi.md
cloudmersive-validate-api-client-1.3.4 ./docs/IPAddressApi.md
cloudmersive-validate-api-client-1.3.3 ./docs/IPAddressApi.md
cloudmersive-validate-api-client-1.3.2 ./docs/IPAddressApi.md
cloudmersive-validate-api-client-1.3.1 ./docs/IPAddressApi.md
cloudmersive-validate-api-client-1.2.9 ./docs/IPAddressApi.md