Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jaaaco/dpd-parcel-service-pl
Meteor package to communicate with DPD Poland API
https://github.com/jaaaco/dpd-parcel-service-pl
Last synced: 6 days ago
JSON representation
Meteor package to communicate with DPD Poland API
- Host: GitHub
- URL: https://github.com/jaaaco/dpd-parcel-service-pl
- Owner: jaaaco
- Created: 2016-01-28T14:27:05.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-29T16:28:57.000Z (almost 9 years ago)
- Last Synced: 2024-10-13T17:22:08.125Z (about 1 month ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Polish DPD Parcell Service API Wrapper
==============================================================================
## Installation for Meteor```shell
meteor add jaaaco:dpd-parcel-service-pl
```==============================================================================
## Installation for nodejs```shell
npm install dpd-parcel-service-pl
```## Basic usage
```javascript
var DPD = require('dpd-parcel-service-pl'); // nodejs only
var dpd = new DPD(login,password,fid,testmode); // testmode is default = true
dpd.call('findPostalCodeV1',{
postalCodeV1: {
countryCode: 'PL',
zipCode: '51166'
}
},function(err, result){
if (err) {
console.log('Error', err);
} else {
console.log('findPostalCodeV1', result);
}
});```
## Examples
Check out testApp/server/methods.js for more usage examples.