{"id":22394167,"url":"https://github.com/atlantis-software/tnt-webservices","last_synced_at":"2025-06-28T06:36:48.998Z","repository":{"id":83024073,"uuid":"351762307","full_name":"Atlantis-Software/tnt-webservices","owner":"Atlantis-Software","description":"A Node.js library to use tnt webservices","archived":false,"fork":false,"pushed_at":"2022-03-23T13:49:04.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T22:45:24.537Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"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/Atlantis-Software.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-26T11:40:46.000Z","updated_at":"2022-03-23T13:49:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"68691bf7-4819-4793-a71a-bb278c0f8eca","html_url":"https://github.com/Atlantis-Software/tnt-webservices","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Atlantis-Software/tnt-webservices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atlantis-Software%2Ftnt-webservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atlantis-Software%2Ftnt-webservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atlantis-Software%2Ftnt-webservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atlantis-Software%2Ftnt-webservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Atlantis-Software","download_url":"https://codeload.github.com/Atlantis-Software/tnt-webservices/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atlantis-Software%2Ftnt-webservices/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262388661,"owners_count":23303321,"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","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-12-05T05:09:14.912Z","updated_at":"2025-06-28T06:36:48.976Z","avatar_url":"https://github.com/Atlantis-Software.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tnt-webservices\nA Node.js library to use tnt webservices\n\n## Installation\n\nInstallation uses the [npm](http://npmjs.org/) package manager.  Just type the following command after installing npm.\n\n    npm install tnt-webservices\n\n## Example\n\n```javascript\nvar tnt = require('tnt-webservices');\n\ntnt(url, username, password, function(err, client) {\n  if (err) {\n    return console.log(err)\n  }\n  var expedition = client.createExpedition();\n  try {\n    expedition.setAccountNumber('06324676');\n    expedition.setShippingDate('2021-03-26');\n    expedition.setLabelFormat('EPL');\n    expedition.setServiceCode('J');\n    expedition.setSaturdayDelivery(false);\n    expedition.sender.setName('EXPEDITEUR S.A.');\n    expedition.sender.setAddress1('1, RUE DEPART');\n    expedition.sender.setAddress2('test');\n    expedition.sender.setZipCode('75001');\n    expedition.sender.setCity('PARIS');\n    expedition.sender.setContactFirstName('test');\n    expedition.sender.setContactLastName('test');\n    expedition.sender.setEmailAddress('expediteur@test.fr');\n    expedition.sender.setPhoneNumber('0102030405');\n    expedition.receiver.setName('RECEVEUR S.A.');\n    expedition.receiver.setAddress1('2, RUE ARRIVEE');\n    expedition.receiver.setAddress2('test');\n    expedition.receiver.setZipCode('69001');\n    expedition.receiver.setCity('LYON');\n    expedition.addParcelRequest('1.1');\n  } catch(err) {\n    return console.log(err);\n  }\n  expedition.send(function(err, result) {\n    if (err) {\n      return console.log(err);\n    }\n    console.log(JSON.stringify(result));\n  });\n  client.citiesGuide('69003', function(err, result) {\n    if (err) {\n      return console.log(err);\n    }\n    console.log(result);\n  });\n});\n```\n\n\n## License\n\ntnt-webservices is available under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatlantis-software%2Ftnt-webservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatlantis-software%2Ftnt-webservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatlantis-software%2Ftnt-webservices/lists"}