Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aexol/syncano-coronasdk
https://github.com/aexol/syncano-coronasdk
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/aexol/syncano-coronasdk
- Owner: aexol
- License: gpl-2.0
- Created: 2015-09-08T11:00:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-27T12:02:57.000Z (about 9 years ago)
- Last Synced: 2023-03-24T07:28:34.124Z (almost 2 years ago)
- Language: Lua
- Size: 69.3 KB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# syncano-coronasdk
Syncano scales and syncs your data across devices in real-time. Get your data when you need it, where you need it, in the form you need it.
Syncano gives you the flexibility to run your code and define your data structures the way you want to - so you can focus on building powerful user experiences.
## user creation
```lua
syn:createUser("username_here","password_here",function ( e )
-- RESPONSE HERE
print(e)
end)
```## user login
```lua
syn:login("username_here","password_here",function ( e )
-- RESPONSE HERE
print(e)
end)
```## data object create
```lua
syn:createDataObject("class_name",{
name="Arthur",
country="Sealand"
},function ( e )
-- RESPONSE HERE
print(e)
end)
```## data object filter
```lua
syn:filterDataObjects("class_name",{
system=499
},function ( e )
-- RESPONSE HERE
print(e)
end)
```## data object delete
```lua
-- PASS CLASS NAME AND OBJECT ID
syn:listDataObjects("class_name",12,function ( e )
-- RESPONSE HERE
print(e)
end)
```## data object update
```lua
syn:updateDataObject("class_name",12,{
country="Zimbabwe"
},function ( e )
-- RESPONSE HERE
print(e)
end)
```## data object get
```lua
-- PASS CLASS NAME AND OBJECT ID
syn:listDataObjects("class_name",12,function ( e )
-- RESPONSE HERE
print(e)
end)
```## data object list
```lua
syn:listDataObjects("class_name",function ( e )
-- RESPONSE HERE
print(e)
end)
```
## run webhook with params```lua
params = {
user:23
}
syn:runWebhook("webhook_name",params,function ( e )
-- RESPONSE HERE
print(e)
end)
```