0.2.0 • Published 4 years ago
@mini-core/cloud v0.2.0
Mini Core Cloud
Как начать?
import Cloud from '@mini-core/cloud';
Cloud.init({
serverUrl: '<your mini core server>',
token: '<your custom token>', // Optional, because token will be auto generated
masterKey: '<your master key>' // ONLY FOR BACKEND!
});
Cloud.users.get()
.then((user) => {
console.log(`My profile: ${JSON.stringify(user)}`);
})
.catch((error) => {
console.log(`Some error: ${error.message}`);
})
Методы
Все методы, которые есть в Mini Core Server