-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split methods to files and big update
- Loading branch information
Showing
163 changed files
with
1,610 additions
and
2,318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
### `account.ban` 🔰 | ||
|
||
Adds user to blacklist. | ||
|
||
**Params**: | ||
|
||
|Name|Value|Description| | ||
|--|--|--| | ||
|`owner_id`|unsigned int|ID of user| | ||
|
||
**Result** | ||
|
||
Returns `1` on success. | ||
|
||
**Possible errors**: | ||
|
||
|Code|Description| | ||
|--|--| | ||
|15|Access denied: cannot blacklist yourself| | ||
|-7856|Blacklist limit exceeded| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### `account.getBalance` 🔰 | ||
|
||
Returns JSON object with `votes` field, that contains your votes count. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
### `account.getBanned` 🔰 | ||
|
||
Returns users in blacklist. | ||
|
||
**Params**: | ||
|
||
|Name|Value|Description| | ||
|--|--|--| | ||
|`offset`|unsigned int|-| | ||
|`count`|unsigned int|-| | ||
|`fields`|unsigned int|Fields, that will be applied to user objects| | ||
|
||
**Result** | ||
|
||
Returns `count` and `items` fields. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### `account.getCounters` 🔰 | ||
|
||
Returns the counters of Unread `Messages`, `Notifications` and `Friends` Requests. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
### `account.getInfo` 🔰 | ||
|
||
*This is a dummy function* | ||
|
||
```json | ||
{ | ||
"response": { | ||
"2fa_required": 0, | ||
"country": "CZ", | ||
"eu_user": false, | ||
"https_required": 1, | ||
"intro": 0, | ||
"community_comments": false, | ||
"is_live_streaming_enabled": false, | ||
"is_new_live_streaming_enabled": false, | ||
"lang": 1, | ||
"no_wall_replies": 0, | ||
"own_posts_default": 0 | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
### `account.getOvkSettings` 🔰 | ||
|
||
Returns: | ||
|
||
```json | ||
{ | ||
"response": | ||
{ | ||
"avatar_style": 0, | ||
"style": "ovk", # current user's theme | ||
"show_rating": 0, # is rating shown | ||
"nsfw_tolerance": 1, | ||
"post_view": "old", | ||
"main_page": "my_page" | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
### `account.getProfileInfo` 🔰 | ||
|
||
Returns the info about account like: | ||
|
||
```json | ||
{ | ||
"response": | ||
{ | ||
"first_name": "Vladimir", | ||
"id": 1, | ||
"is_verified": 1, | ||
"last_name": "Barinov", | ||
"home_town": "Moscow", | ||
"nickname": "veselcraft", | ||
"status": "Status example", | ||
"bdate": "1.1.1970", | ||
"bdate_visibility": 0, | ||
"phone": "+420 ** *** 228", | ||
"relation": 2, | ||
"sex": 2, | ||
"screen_name": "vc" | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
### `account.saveProfileInfo` 🔰 | ||
|
||
Params: | ||
|
||
|Name|Value|Description| | ||
|--|--|--| | ||
|`first_name`|string|New first name | ||
|`last_name`|string|New last name| | ||
|`screen_name`|string|New shortcode| | ||
|`sex`|int (0 — male, 1 — female)|New `sex` value| | ||
|`relation`|int (0 — 8)|New maritial status| | ||
|`bdate`|string|New birthday| | ||
|`bdate_visibility`|int (1, 2)|New birthday visibility| | ||
|`home_town`|string|New `hometown`| | ||
|`status`|string|New page status (can also be changed via `status.set`)| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
### `account.sendVotes` 🔰 | ||
|
||
**Warning**: this method is incompatible with VK API. | ||
|
||
Send votes to user. | ||
|
||
**Params**: | ||
|Name|Value|Description| | ||
|--|--|--| | ||
|`reciever`|unsigned int|ID of reciever| | ||
|`value`|unsigned int|Count of voices| | ||
|`message`|string|Message, that will be seen in notification.| | ||
|
||
**Possible errors**: | ||
|
||
|Code|Description| | ||
|--|--| | ||
|-105|Commerce is disabled on this instance| | ||
|-248|Invalid reciever id| | ||
|-249|Message is too long| | ||
|-252|Not enough votes| | ||
|-250|Invalid reciever| | ||
|-251|Can't transfer votes to yourself| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
### `account.setOnline` 🔰 | ||
|
||
Updates online on your profile. | ||
|
||
Returns `1`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
### `account.ban` 🔰 | ||
|
||
Removes user from blacklist. | ||
|
||
**Params**: | ||
|
||
|Name|Value|Description| | ||
|--|--|--| | ||
|`owner_id`|unsigned int|ID of user| | ||
|
||
**Result** | ||
|
||
Returns `1` on success. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
### `audio.add` 🔰 | ||
|
||
Adds audio to collection. | ||
|
||
**Params**: | ||
|
||
|Name|Value|Description| | ||
|--|--|--| | ||
|`audio_id`|int|Audio id| | ||
|`owner_id`|int|Audio owner id| | ||
|`group_id`|int|Group id (if needed)| | ||
|
||
**Result**: | ||
|
||
Returns audio id on success. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
### `audio.addAlbum` 🔰 | ||
|
||
Creates new album. | ||
|
||
**Params**: | ||
|
||
|Name|Value|Description| | ||
|--|--|--| | ||
|`title`|string|Playlist title| | ||
|`description`|string|Playlist description| | ||
|`group_id`|int|Set owner as group| | ||
|
||
**Result**: | ||
|
||
Returns album id on success. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
### `audio.beacon` 🔰 | ||
|
||
Sets audiostatus. | ||
|
||
**Params**: | ||
|
||
|Name|Value|Description| | ||
|--|--|--| | ||
|`aid`|unsigned int|Audio id| | ||
|`gid`|unsigned int|Group id (not visible at web version)| | ||
|
||
**Result**: | ||
|
||
Returns `1` on success. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
### `audio.bookmarkAlbum` 🔰 | ||
|
||
Adds album to your collection | ||
|
||
**Params**: | ||
|
||
|Name|Value|Description| | ||
|--|--|--| | ||
|`id`|int|Playlist id| | ||
|
||
**Result**: | ||
|
||
Returns 1 on success. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
### `audio.delete` 🔰 | ||
|
||
Removes audio from collection. | ||
|
||
**Params**: | ||
|
||
|Name|Value|Description| | ||
|--|--|--| | ||
|`audio_id`|int|Audio id| | ||
|`owner_id`|int|Audio owner id| | ||
|`group_id`|int|Group id (if needed)| | ||
|
||
**Result**: | ||
|
||
Returns 1 on success. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
### `audio.deleteAlbum` 🔰 | ||
|
||
Completely deletes album. | ||
|
||
**Params**: | ||
|
||
|Name|Value|Description| | ||
|--|--|--| | ||
|`album_id`|int|Playlist id| | ||
|
||
**Result**: | ||
|
||
Returns 1 on success. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
### `audio.edit` 🔰 | ||
|
||
Edits audio. | ||
|
||
**Params**: | ||
|
||
|Name|Value|Description| | ||
|--|--|--| | ||
|`owner_id`|int|Audio owner id| | ||
|`audio_id`|int|Audio id| | ||
|`artist`|string|New artists name| | ||
|`title`|string|New songs name| | ||
|`text`|string|New lyrics| | ||
|`genre_str`|string|New genre name| | ||
|`no_search`|bool|Is available in search| | ||
|
||
**Result**: | ||
|
||
Returns 1 on success. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
### `audio.editAlbum` 🔰 | ||
|
||
Edits album. | ||
|
||
**Params**: | ||
|
||
|Name|Value|Description| | ||
|--|--|--| | ||
|`album_id`|int|Playlist id| | ||
|`title`|string|Playlist title| | ||
|`description`|string|Playlist description| | ||
|
||
**Result**: | ||
|
||
Returns 1 on success. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
### `audio.get` 🔰 | ||
|
||
Returns audios with some conditions. | ||
|
||
**Params**: | ||
|
||
|Name|Value|Description| | ||
|--|--|--| | ||
|`owner_id`|int|If passed, returns audios from user/club's collection| | ||
|`album_id`|unsigned int|If passed, returns audios from playlist| | ||
|`audio_ids`|string|If passed, returns audios by ids| | ||
|`offset`|unsigned int|Offset.| | ||
|`count`|unsigned int|Count.| | ||
|`uploaded_only`|bool|If passed, returns only uploaded audios by user| | ||
|
||
**Result**: | ||
|
||
Returns `count` and `items` fields. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
### `audio.getAlbums` 🔰 | ||
|
||
Returns users/groups playlist collection. | ||
|
||
**Params**: | ||
|
||
|Name|Value|Description| | ||
|--|--|--| | ||
|`owner_id`|int|Get from his collection| | ||
|`offset`|int|Offset| | ||
|`count`|int|Count| | ||
|
||
**Result**: | ||
|
||
Returns 1 on success. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
### `audio.getBroadcastList` 🔰 | ||
|
||
Returns friends/groups that currently broadcasting music. | ||
|
||
**Params**: | ||
|
||
|Name|Value|Description| | ||
|--|--|--| | ||
|`filter`|string|`all`,`friends`,`groups`| | ||
|`hash`|string|-| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
### `audio.getById` 🔰 | ||
|
||
Returns audios by his ids | ||
|
||
**Params**: | ||
|
||
|Name|Value|Description| | ||
|--|--|--| | ||
|`audios`|string|CSV array with audio ids| | ||
|`hash`|string|не знаю| | ||
|`need_user`|bool (0, 1)|On 1 returns uploader| | ||
|
||
**Result**: | ||
|
||
Returns `count` and `items`. |
Oops, something went wrong.