dooity.com API
dooity saves all your entries in a single variable. In Javascript this variable is an object and in python a dictionnary. The keys/properties of the dictionnary/object are the id of the entries. The value of these keys/properties is the entry itself.
Furthermore we will call this object/dictionnary the entries object.
To see an example go to brillout.com/json2html?url=https://dooity-api.appspot.com/load
Note that dooity saves the position and the importance of the entries as hidden tags. Hidden tags are tags with following syntax: /#_.+/. Currently dooity uses three hidden tags: '#_pos' to save the position of the entry, '#_imp' to save the importance of the entry and '#_removed' to save the removed state of an entry.
requests without cookies:
in order to use the API with authentication not based on cookies send an email to mail@dooity.com
requests with cookies:
with cookie based authentication make requests with credentials to following URLs:
-
https://dooity-api.appspot.com/load
-
request method: GET or POST
-
response: the entries object encoded in JSON
note that if no credientials are prodived the example entries object will be returned
-
https://dooity-api.appspot.com/save
-
request method: POST
-
arguments: data=`the modified entries object encoded in JSON`
With modified entries object is meant the entries object containing only entries that has been modified.
to manage the credentials make requests to following URLs:
-
https://dooity-api.appspot.com/auth/signin
-
request method: POST
-
arguments: user=`username or email`&pw=`password`
-
https://dooity-api.appspot.com/auth/signup
-
request method: POST
-
arguments: user=`username or email`&pw=`password`
-
https://dooity-api.appspot.com/auth/signout
-
https://dooity-api.appspot.com/auth/check
-
request method: GET or POST
-
response: '1' or 'do reload' or 'not logged'
'1' means everything is ok
'do reload' means the entries object on the client is not equal to the entries object on the server, thus the client should reload the entries object
'not logged' means the credentials are missing or outdated
for further questions feel free to email us at mail@dooity.com