46 #define APPLICATION_ID_MAX_LEN 40
51 #define CLIENT_KEY_MAX_LEN 40
56 #define OBJECT_ID_MAX_LEN 16
61 #define INSTALLATION_ID_MAX_LEN 36
66 #define SESSION_TOKEN_MAX_LEN 40
68 struct ParseClientInternal;
107 typedef void (*
parseRequestCallback)(ParseClient client,
int error,
int httpStatus,
const char* httpResponseBody);
143 ParseClient
parseInitialize(
const char *applicationId,
const char *clientKey);
317 #if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__)) || defined (PART_CC3200)
void parseSetPushCallback(ParseClient client, parsePushCallback callback)
Set the callback for push notifications and errors.
void parseSetSessionToken(ParseClient client, const char *sessionToken)
Set the session token for the Parse client.
void parseSendRequest(ParseClient client, const char *httpVerb, const char *httpPath, const char *httpRequestBody, parseRequestCallback callback)
Send an API request.
void parseClearSessionToken(ParseClient client)
Clear the session token.
ParseClient parseInitialize(const char *applicationId, const char *clientKey)
Initialize the Parse client and user session.
void parseRunPushLoop(ParseClient client)
Process push notifications events in a loop.
const char * parseGetSessionToken(ParseClient client)
Return the client session token.
void(* parseRequestCallback)(ParseClient client, int error, int httpStatus, const char *httpResponseBody)
Callback for API requests.
Definition: parse.h:107
void(* parsePushCallback)(ParseClient client, int error, const char *data)
Callback for push notifications and errors from the push service.
Definition: parse.h:126
const char * parseGetInstallationId(ParseClient client)
Return the client installation id.
void parseStopPushService(ParseClient client)
Stop the push notifications service.
int parseStartPushService(ParseClient client)
Start the push notifications service.
int parseProcessNextPushNotification(ParseClient client)
Process next pending push notification.
int parseGetPushSocket(ParseClient client)
Request Parse push file handle for use with select call.
int parseGetErrorCode(const char *httpResponseBody)
Extract Parse error code.
const struct ParseClientInternal * ParseClient
Parse client handle.
Definition: parse.h:86
void parseSetInstallationId(ParseClient client, const char *installationId)
Set the installation object id for this client.