Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dowmeister committed Sep 23, 2017
1 parent ab15223 commit d60e086
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Trucky App REST API client for node.js

[![Build Status](https://travis-ci.org/shardick/trucky-services-client-node.svg?branch=master)](https://travis-ci.org/shardick/trucky-services-client-node)

[![npm version](https://badge.fury.io/js/trucky-services-client.svg)](https://badge.fury.io/js/trucky-services-client)

This package is the Trucky API client, complete gateway to TruckersMP, ETS2Map and Traffic data served from TruckersMP developers community (official and unofficial).
Expand Down Expand Up @@ -30,6 +32,10 @@ api.resolveVanityUrl("dowmeister").then( (response) => {

```

## Dependencies

- [node-fetch](https://github.com/bitinn/node-fetch): A light-weight module that brings window.fetch to node.js and io.js

# API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
Expand Down
Binary file added dep.md
Binary file not shown.
6 changes: 3 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ var TruckyAPIClient = require('./index.js');

var api = new TruckyAPIClient();
api.servers().then((response) => {
console.log(response);
console.log('servers loaded');
});

api.pois().then(function(response) {
console.log(response);
console.log('pois loaded');
});

api.resolveVanityUrl("dowmeister").then( (response) => {
console.log(response);
console.log('vanity url resolved');
});

0 comments on commit d60e086

Please sign in to comment.