Sha256: 7e1f54394812c80e5d2cfc6e9f2a11345e7bcb275d775a8a756db16f55d6ad59

Contents?: true

Size: 1.93 KB

Versions: 25

Compression:

Stored size: 1.93 KB

Contents

# CloudmersiveValidateApiClient::UserAgentApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**user_agent_parse**](UserAgentApi.md#user_agent_parse) | **POST** /validate/useragent/parse | Parse an HTTP User-Agent string, identify robots


# **user_agent_parse**
> UserAgentValidateResponse user_agent_parse(request)

Parse an HTTP User-Agent string, identify robots

Uses a parsing system and database to parse the User-Agent into its structured component parts, such as Browser, Browser Version, Browser Engine, Operating System, and importantly, Robot identification.

### 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::UserAgentApi.new

request = CloudmersiveValidateApiClient::UserAgentValidateRequest.new # UserAgentValidateRequest | Input parse request


begin
  #Parse an HTTP User-Agent string, identify robots
  result = api_instance.user_agent_parse(request)
  p result
rescue CloudmersiveValidateApiClient::ApiError => e
  puts "Exception when calling UserAgentApi->user_agent_parse: #{e}"
end
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **request** | [**UserAgentValidateRequest**](UserAgentValidateRequest.md)| Input parse request | 

### Return type

[**UserAgentValidateResponse**](UserAgentValidateResponse.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json, text/json
 - **Accept**: application/json, text/json, application/xml, text/xml



Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
cloudmersive-validate-api-client-2.2.6 ./docs/UserAgentApi.md
cloudmersive-validate-api-client-2.2.5 ./docs/UserAgentApi.md
cloudmersive-validate-api-client-2.2.4 ./docs/UserAgentApi.md
cloudmersive-validate-api-client-2.2.3 ./docs/UserAgentApi.md
cloudmersive-validate-api-client-2.2.2 ./docs/UserAgentApi.md
cloudmersive-validate-api-client-2.2.0 ./docs/UserAgentApi.md
cloudmersive-validate-api-client-2.1.9 ./docs/UserAgentApi.md
cloudmersive-validate-api-client-2.1.7 ./docs/UserAgentApi.md
cloudmersive-validate-api-client-2.1.6 ./docs/UserAgentApi.md
cloudmersive-validate-api-client-2.1.5 ./docs/UserAgentApi.md
cloudmersive-validate-api-client-2.1.4 ./docs/UserAgentApi.md
cloudmersive-validate-api-client-2.1.3 ./docs/UserAgentApi.md
cloudmersive-validate-api-client-2.1.2 ./docs/UserAgentApi.md
cloudmersive-validate-api-client-2.1.1 ./docs/UserAgentApi.md
cloudmersive-validate-api-client-2.1.0 ./docs/UserAgentApi.md
cloudmersive-validate-api-client-2.0.9 ./docs/UserAgentApi.md
cloudmersive-validate-api-client-2.0.8 ./docs/UserAgentApi.md
cloudmersive-validate-api-client-2.0.7 ./docs/UserAgentApi.md
cloudmersive-validate-api-client-2.0.6 ./docs/UserAgentApi.md
cloudmersive-validate-api-client-2.0.5 ./docs/UserAgentApi.md