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
syn:createUser("username_here","password_here",function ( e )
-- RESPONSE HERE
print(e)
end)
user login
syn:login("username_here","password_here",function ( e )
-- RESPONSE HERE
print(e)
end)
data object create
syn:createDataObject("class_name",{
name="Arthur",
country="Sealand"
},function ( e )
-- RESPONSE HERE
print(e)
end)
data object filter
syn:filterDataObjects("class_name",{
system=499
},function ( e )
-- RESPONSE HERE
print(e)
end)
data object delete
-- PASS CLASS NAME AND OBJECT ID
syn:listDataObjects("class_name",12,function ( e )
-- RESPONSE HERE
print(e)
end)
data object update
syn:updateDataObject("class_name",12,{
country="Zimbabwe"
},function ( e )
-- RESPONSE HERE
print(e)
end)
data object get
-- PASS CLASS NAME AND OBJECT ID
syn:listDataObjects("class_name",12,function ( e )
-- RESPONSE HERE
print(e)
end)
data object list
syn:listDataObjects("class_name",function ( e )
-- RESPONSE HERE
print(e)
end)
run webhook with params
params = {
user:23
}
syn:runWebhook("webhook_name",params,function ( e )
-- RESPONSE HERE
print(e)
end)