@sendanor/cloud-client
v1.0.10
Published
Client for Sendanor's cloud framework
Downloads
3
Readme
Client for Sendanor's cloud framework
This module creates client interfaces into services provided by @sendanor/cloud-backend
.
Install: npm i --save '@sendanor/cloud-client'
import cloudClient from '@sendanor/cloud-client';
cloudClient('http://localhost:3000').then(instance => {
return instance.getDate().then(date => {
return instance.echo('foobar').then(str => {
console.log('.echo("foobar") returned "' + str + '" of type '+ typeof str+ " and of class "+ str.constructor.name);
});
});
});