Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.