Skip to content

Latest commit

 

History

History
executable file
·
63 lines (40 loc) · 1.55 KB

AddressValidationApi.md

File metadata and controls

executable file
·
63 lines (40 loc) · 1.55 KB

ShipEngineApi::AddressValidationApi

All URIs are relative to https://api.shipengine.com

Method HTTP request Description
v1_addresses_validate_post POST /v1/addresses/validate addresses.validate_addresses

v1_addresses_validate_post

Array<AddressValidationResult> v1_addresses_validate_post(body)

addresses.validate_addresses

Example

# load the gem
require 'shipengine_api'
# setup authorization
ShipEngineApi.configure do |config|
  # Configure API key authorization: api-key
  config.api_key['api-key'] = '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['api-key'] = 'Bearer'
end

api_instance = ShipEngineApi::AddressValidationApi.new

body = [ShipEngineApi::Address.new] # Array<Address> | 


begin
  #addresses.validate_addresses
  result = api_instance.v1_addresses_validate_post(body)
  p result
rescue ShipEngineApi::ApiError => e
  puts "Exception when calling AddressValidationApi->v1_addresses_validate_post: #{e}"
end

Parameters

Name Type Description Notes
body Array<Address>

Return type

Array<AddressValidationResult>

Authorization

api-key

HTTP request headers

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