{"id":18133343,"url":"https://github.com/andreapavoni/dhl","last_synced_at":"2025-08-02T10:36:34.775Z","repository":{"id":10017401,"uuid":"12056009","full_name":"andreapavoni/dhl","owner":"andreapavoni","description":"A wrapper for DHL SOAP interface","archived":false,"fork":false,"pushed_at":"2013-08-22T13:41:02.000Z","size":170,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-06T16:24:11.577Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://momitians.github.io/dhl/","language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreapavoni.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-12T13:02:51.000Z","updated_at":"2017-01-12T22:17:20.000Z","dependencies_parsed_at":"2022-09-01T21:01:43.622Z","dependency_job_id":null,"html_url":"https://github.com/andreapavoni/dhl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andreapavoni/dhl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreapavoni%2Fdhl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreapavoni%2Fdhl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreapavoni%2Fdhl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreapavoni%2Fdhl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreapavoni","download_url":"https://codeload.github.com/andreapavoni/dhl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreapavoni%2Fdhl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268372105,"owners_count":24239814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-01T13:07:29.432Z","updated_at":"2025-08-02T10:36:34.728Z","avatar_url":"https://github.com/andreapavoni.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DHL\n\n[![Build Status](https://travis-ci.org/momitians/dhl.png?branch=master)](https://travis-ci.org/momitians/dhl)\n[![Dependency Status](https://gemnasium.com/momitians/dhl.png)](https://gemnasium.com/momitians/dhl)\n[![Code Climate](https://codeclimate.com/github/momitians/dhl.png)](https://codeclimate.com/github/momitians/dhl)\n\nThis gem will provide a wrapper to DHL SOAP API. Given DHL credentials and the addresses, will generate a shipping label.\n\nIt refers to the DHL test environment and cannot be used, as of yet, for production environments.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'dhl'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install dhl\n\n## Usage\n\n### Package Tracking\n\nTBD\n\n### Request Shipment\n\n```ruby\n# Start by creating a new shipment request\nshipment_request = Dhl::ShipmentRequest.new\n\n# Set sender info\nshipment_request.shipper.name         = 'Package Sender'\nshipment_request.shipper.company      = 'The Packs Inc'\nshipment_request.shipper.phone        = '555-4321'\nshipment_request.shipper.email        = 'ps@example.com'\nshipment_request.shipper.address      = 'Geary Boulevard, 1234'\nshipment_request.shipper.address2     = 'First floor, Apt 2'\nshipment_request.shipper.postal_code  = '54321'\nshipment_request.shipper.city         = 'San Francisco'\nshipment_request.shipper.state_name   = 'CA'\nshipment_request.shipper.country_code = 'USA'\n\n# Set recipient info\nshipment_request.recipient.name         = 'Package Receiver'\nshipment_request.recipient.company      = 'Pack It Ltd'\nshipment_request.recipient.phone        = '555-1234'\nshipment_request.recipient.email        = 'pr@example.com'\nshipment_request.recipient.address      = 'Times Square, 1234'\nshipment_request.recipient.address2     = 'Third floor, Apt 5'\nshipment_request.recipient.postal_code  = '12345'\nshipment_request.recipient.city         = 'New York'\nshipment_request.recipient.state_name   = 'NY'\nshipment_request.recipient.country_code = 'USA'\n\n# Set a pickup date and time\nshipment_request.shipment.pickup_time = Time.new(2013, 05, 20, 10, 00, 00, \"-08:00\")\n\n# Add Packages with weight, width, height, length and a reference string\nshipment_request.packages.add(10, 15, 5, 20, 'Pack')\n\n# Execute the reeuqest\nresult = Dhl.client.request_shipment(shipment_request)\n\n```\n\nIf everything goes well, result will be a hash with:\n* tracking_numbers: Shipment tracking number\n* shipping_label: Path to the shipping label PDF\n\n## Testing\n\nFor testing purposes please set the timezone to UTC\n\n```shell\n$ export TZ=UTC\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## Licence\n\nReleased under the [MIT License](http://www.opensource.org/licenses/MIT). © 2013 [Momit S.r.l.](http://momit.it/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreapavoni%2Fdhl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreapavoni%2Fdhl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreapavoni%2Fdhl/lists"}