Sha256: 5aa64ba7aca64903e9e1db831446c2a52895b5bd8591daae093b83612bc3c080
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 Bytes
Contents
module VNCPostAPI # Tracking is only available on production class Tracking < Base self.prefix = "/Track/Order" self.element_name = "" self.connection_class = VNCPostAPI::Connection def self.find(code) body = { Code: code } connection.bearer_token = UserLogin.bearer_token(username: "V9Cus327141793", password: "8DBNvF9Y56nnjNTU") response = connection.post(collection_path, body.to_json) new(self.format.decode(response.body).deep_transform_keys!(&:underscore)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vncpost_api-0.3.0 | lib/vncpost_api/resources/tracking.rb |