Parse class

Constructors

Parse()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

anonUser(String id) Future<ParseUser>
sign in as anonymous user provide random id to create new user its not possible to sign in again as this specific user after session token is revoked
batch() → _ParseBatch
returns a new Parse Batch
create(String collection, Map<String, dynamic> data) Future<ParseDocument>
creates a new document in collection with id containing the provided data
delete(String collection, String id) Future<ParseDocResponse>
deletes the document in collection with id throws UnsupportedError if user has no access rights or document ist does not exist
deleteUser(String id, String token) Future<ParseUserResponse>
deletes user with id if provided session token is valid
fetch(String collection, String id) Future<ParseDocument>
returns the document in collection with id throws UnsupportedError if user has no access rights or document ist does not exist
initialize(String url, String appID, {Map<String, String> headers}) → void
sets the url, appID and additional headers for api calls
query(String collection) ParseQuery
returns a new query in the given collection
registerUser(String username, String password, {Map<String, dynamic> data}) Future<ParseUser>
creates and returns new user with username, password and the optional additional data
revokeSession(String token) Future<void>
revoke the session by providing the session token Use this to logout an user
setCurrentUserToken(String token) → void
includes the provided token for future api calls in the http header Use this to gain access to restricted documents token will be automatically removed after logout or revoking session
signInUser(String username, String password) Future<ParseUser>
sign in an returns existing user with username and password
update(String collection, String id, Map<String, dynamic> data) Future<ParseDocResponse>
updates the document in collection with id and the provided data throws UnsupportedError if user has no access rights or document ist does not exist
updateUser(String id, String token, Map<String, dynamic> data) Future<ParseUserResponse>
updates user with id if token is valid using the provided data
validateSession(String token) Future<ParseUser>
validates and returns user if session token is valid else returns null