Skip to content

Commit

Permalink
Docs(readme): Examples for different uses
Browse files Browse the repository at this point in the history
  • Loading branch information
fvdm committed Nov 28, 2016
1 parent b89ec09 commit 9764d9a
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,30 @@ callback | function | yes | | `function (err, da


```js
function postProcess (err, data) {
console.dir (err || data, {
depth: null,
colors: true
});
}


// Get details about one license plate
ovio ({
path: '4-TFL-24',
params: { fields: ['eerstekleur'] },
callback: function (err, data) {
if (err) { return console.log (err); }
console.log (data.eerstekleur);
}
params: {
fields: ['eerstekleur', 'vervaldatumapk']
},
callback: postProcess
});


// Search the dataset
ovio ({
params: {
'filters[merk]': 'bmw'
},
callback: postProcess
});
```

Expand Down

0 comments on commit 9764d9a

Please sign in to comment.