Module: Shippo::API::Operations::Track

Defined in:
lib/shippo/api/operations/track.rb

Instance Method Summary collapse

Instance Method Details

#get(id, carrier) ⇒ Object

Retrieves tracking status of a shipment

Parameters:

  • id (Fixnum)

    Database ID of the shipment to be received

  • carrier (String)

    The carrier of the item to be received



8
9
10
11
# File 'lib/shippo/api/operations/track.rb', line 8

def get(id, carrier)
  response = Shippo::API.get("#{url}/#{CGI.escape(carrier)}/#{CGI.escape(id)}/")
  self.from(response)
end