Module: Usps::Api::Endpoints::SCAN
- Included in:
- Usps::Api::Endpoints
- Defined in:
- lib/usps/api/endpoints/scan.rb
Instance Method Summary collapse
-
#scan(options = {}) ⇒ Object
The SCAN API allows integrators to consolidate multiple domestic and international labels and custom forms through one Electronic File Number (EFN) and physical SCAN Form (PS Form 5630 or 3152).
Instance Method Details
#scan(options = {}) ⇒ Object
The SCAN API allows integrators to consolidate multiple domestic and international labels and custom forms through one Electronic File Number (EFN) and physical SCAN Form (PS Form 5630 or 3152). The API operates as follows:
39 40 41 42 43 44 45 46 47 |
# File 'lib/usps/api/endpoints/scan.rb', line 39 def scan( = {}) throw ArgumentError.new('Required arguments :scan_request missing') if [:scan_request].nil? request = build_request(:scan, ) get('https://secure.shippingapis.com/ShippingAPI.dll', { API: 'SCAN', XML: request, }) end |