Sha256: db03297da2d47f408ef6329335a63b7021f1361d3f92f8aef5ef346ab283d31c
Contents?: true
Size: 823 Bytes
Versions: 1
Compression:
Stored size: 823 Bytes
Contents
require 'base64' module Blackbird module Retoure module Environments # Public: Sandbox environment specific functions class Production < ::Blackbird::Retoure::Environments::Base ENDPOINT = 'https://cig.dhl.de/services/production/rest/returns/'.freeze # Internal: Return the authentication data needed for the HTTP # Basic authentication. # # Returns an Array containing the username and the password to use for # the CIG HTTP Basic authentication. def authentication_data [@app_id, @app_token] end # Internal: Generate the DPDHL User Authentication Token # # Returns a String. def dpdhl_token Base64.strict_encode64("#{@username}:#{@password}") end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blackbird-retoure-0.1.0 | lib/blackbird/retoure/environments/production.rb |