This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api_methods.txt
55 lines (38 loc) · 1.62 KB
/
api_methods.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
(arg0, arg1, ...) -> success | fail
auth:
auth.registration:
(email, password, username, name) -> 0 | error descritpion
auth.gettoken:
(email, password) -> token | error
user:
user.changename:
(token, current name, new name) -> new name | error
user.changepassword:
(token, current password, new password) -> new token | error
user.getname:
(username) -> name | error
user.getblocked:
(token) -> usernames | error
user.getdialogues:
(token) -> usernames | error
user.block:
(token, other's username) -> other's username | error
descritpion: добавляет в черный список пользователя
messages:
messages.send:
(token, username of receiver, content) -> 0 | error
messages.getunread:
(token) -> json of messages | error
descritpion: получение всех непрочитанных сообщений
messages.getlastmessages:
(token, other's username, number of messages) -> json of messages | error
descritpion: получение последних n сообщений с каким-то юзером
messages.getlastMessage:
(token, other's username, number of messages) -> message | error
descritpion: получение последнего сообщения с юзером
messages.markasread:
(token, other's username) -> 0 | error
descritpion: помечает все сообщения с юзером прочитанными
messages.deletehistory:
(token, other's username) -> 0 | error
descritpion: удаляет переписку с юзером (для обоих)