An example of simple rest-like python api for apps and web that allows users to share photos in personal chats.
All query and post parameters are string.
Send new photo to chat. Use post request. Required query parameters are token
is a user private token, chat_id
is an id of chat to send photo to. Requeired post parameter is photo
is a base64 string, should be send as xxx-form-url-encoded field.
Is user private token. You can get a token by /users/auth/
. Most of the methods requires this token to disallow users to acces other users private data.
Is an unique id of chat between two users.
Is an unique id of photo previously sent to server by /photos/add/
.
An unique id of user.