syncano / syncano-android Goto Github PK
View Code? Open in Web Editor NEWAndroid library for http://syncano.com API
License: MIT License
Android library for http://syncano.com API
License: MIT License
can we get this lib published to use as a one liner in gradle??
thanks!
I can't use a SyncanoListCallback to load some history channel asynchronously. The only available param is an SyncanoCallback<List>
Jus wondering before I dive in on my own recipe....
Have you guys been cooking up ways to still get the data even when the activity/app is in the background....
It seems now when we come back to an activity that is receiving real time channel data, that we have to make calls to syncano and check what we missed since the last data we received.
as opposed to the app always receiving the data, storing it in the background and displaying it upon return.
thanks for the lib...
I'm using this code to attempt to create an object on a class....
POJO
@SyncanoClass(name = "inapp")
public class InApp extends SyncanoObject{
public static final String FIELD_EVENT = "eventt";
@SyncanoField(name = FIELD_EVENT)
public String event;
}
IMPL
....
static Syncano syncano;
syncano = new Syncano(BuildConfig.SYNCANO_KEY, BuildConfig.SYNCANO_GLOBAL_INSTANCE);
InApp inApp = new InApp();
inApp.event = "event";
Log.d(TAG,inApp.toString());
Response<InApp> responseCreateObject = syncano.createObject(inApp).send();
if (responseCreateObject.getResultCode() == Response.CODE_SUCCESS) {
slackApi.call(new SlackMessage(String.valueOf(Response.CODE_SUCCESS)));
} else if (responseCreateObject.getResultCode() == Response.CODE_HTTP_ERROR) {
Log.d(TAG, "Result Code: " + responseCreateObject.getHttpResultCode());
Log.d(TAG, "Reason Phrase: " + responseCreateObject.getHttpReasonPhrase());
slackApi.call(new SlackMessage(String.valueOf(responseCreateObject.getHttpResultCode())));
slackApi.call(new SlackMessage(String.valueOf(responseCreateObject.getHttpReasonPhrase())));
}
10-22 20:17:35.475 31011-31347/com.xxxx D/xxx: Result Code: 404
10-22 20:17:35.475 31011-31347/com.xxxx D/xxx: Reason Phrase: NOT FOUND
The class exist in the dashboard, I made the class using python library....
I can make a object from python client no problem....
Is there a working Android example?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.