0.3.0 • Published 7 years ago

nearest-sdk v0.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Nearest! SDK

Setup

Install the NPM Package by using

npm i nearest-sdk --save

Now you can use the SDK by importing it. The code is isomophic ready.

Init SDK

import { NearestClient } from 'nearest-sdk';

const SDK = NearestClient({
	apiKey: 'your-api-public-key',
});

The API

The API works with this schema: SDK.$topic.$action().

Server

Information from the server. Could be used for testing.

  • info: Get info of Endpoint Server

server.version

SDK.server.info({}).then((serverInfo) => {
	const { version } = serverInfo;
	// do smth with it
}, (err) => {
	// work with the err
});
0.3.0

7 years ago

0.2.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago