https://github.com/steinathan/cloud-sdk
cloud sdk client for use in browser
https://github.com/steinathan/cloud-sdk
Last synced: about 1 year ago
JSON representation
cloud sdk client for use in browser
- Host: GitHub
- URL: https://github.com/steinathan/cloud-sdk
- Owner: steinathan
- License: mit
- Created: 2019-05-27T20:41:03.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T01:52:02.000Z (over 3 years ago)
- Last Synced: 2025-04-12T02:39:05.158Z (about 1 year ago)
- Language: JavaScript
- Size: 1.02 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Cloud sdk
cloud-sdk client for use in the browser with `fetch` API
### Usage
copy `cloud-sdk.umd.js` from the `dist` folder and paste in your clients folder (vue or react or etc)
check `dev/index.html` for example
### Calling actions
```js
var users = await cloud("users", { omit: ["photo"] }); // where `omit` is an `inputs:{}`
console.log(users);
await cloud("deleteToken":, { id: 'xxxxxx' })
// something like this
```
check http://localhost:1337/__cloud for a comprehensive list of all your action names
> This is a proof of what i thought cloud-sdk would be please check https://github.com/navicstein/sails-hook-cloud for the global sailsjs hook (not yet released on npm!) [fast finger]
i have plans to release this lib on npm and made available via unpkg after proper verification with the sails team
### upcoming
- Custom Listeners
- Event Listeners (success | error)
- etc