commit | author | age
|
3eceb5
|
1 |
// |
W |
2 |
// VKApiUsers.h |
|
3 |
// |
|
4 |
// Copyright (c) 2014 VK.com |
|
5 |
// |
|
6 |
// Permission is hereby granted, free of charge, to any person obtaining a copy of |
|
7 |
// this software and associated documentation files (the "Software"), to deal in |
|
8 |
// the Software without restriction, including without limitation the rights to |
|
9 |
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of |
|
10 |
// the Software, and to permit persons to whom the Software is furnished to do so, |
|
11 |
// subject to the following conditions: |
|
12 |
// |
|
13 |
// The above copyright notice and this permission notice shall be included in all |
|
14 |
// copies or substantial portions of the Software. |
|
15 |
// |
|
16 |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
17 |
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
|
18 |
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
|
19 |
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
|
20 |
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
|
21 |
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
22 |
|
|
23 |
#import "VKApiBase.h" |
|
24 |
|
|
25 |
/** |
|
26 |
Builds requests for API.users part |
|
27 |
*/ |
|
28 |
@interface VKApiUsers : VKApiBase |
|
29 |
/** |
|
30 |
Returns basic information about current user |
|
31 |
@return Request for load |
|
32 |
*/ |
|
33 |
- (VKRequest *)get; |
|
34 |
|
|
35 |
/** |
|
36 |
https://vk.com/dev/users.get |
|
37 |
@param params use parameters from description with VK_API prefix, e.g. VK_API_USER_IDS, VK_API_FIELDS, VK_API_NAME_CASE |
|
38 |
@return Request for load |
|
39 |
*/ |
|
40 |
- (VKRequest *)get:(NSDictionary *)params; |
|
41 |
|
|
42 |
/** |
|
43 |
https://vk.com/dev/users.search |
|
44 |
@param params use parameters from description with VK_API prefix, e.g. VK_API_Q, VK_API_CITY, VK_API_COUNTRY, etc. |
|
45 |
@return Request for load |
|
46 |
*/ |
|
47 |
- (VKRequest *)search:(NSDictionary *)params; |
|
48 |
|
|
49 |
/** |
|
50 |
https://vk.com/dev/users.isAppUser |
|
51 |
@return Request for load |
|
52 |
*/ |
|
53 |
- (VKRequest *)isAppUser; |
|
54 |
|
|
55 |
/** |
|
56 |
https://vk.com/dev/users.isAppUser |
|
57 |
@param userID ID of user to check |
|
58 |
@return Request for load |
|
59 |
*/ |
|
60 |
- (VKRequest *)isAppUser:(NSInteger)userID; |
|
61 |
|
|
62 |
/** |
|
63 |
https://vk.com/dev/users.getSubscriptions |
|
64 |
@return Request for load |
|
65 |
*/ |
|
66 |
- (VKRequest *)getSubscriptions; |
|
67 |
|
|
68 |
/** |
|
69 |
https://vk.com/dev/users.getSubscriptions |
|
70 |
@param params use parameters from description with VK_API prefix, e.g. VK_API_USER_ID, VK_API_EXTENDED, etc. |
|
71 |
@return Request for load |
|
72 |
*/ |
|
73 |
- (VKRequest *)getSubscriptions:(NSDictionary *)params; |
|
74 |
|
|
75 |
/** |
|
76 |
https://vk.com/dev/users.getFollowers |
|
77 |
@return Request for load |
|
78 |
*/ |
|
79 |
- (VKRequest *)getFollowers; |
|
80 |
|
|
81 |
/** |
|
82 |
https://vk.com/dev/users.getFollowers |
|
83 |
@param params use parameters from description with VK_API prefix, e.g. VK_API_USER_ID, VK_API_OFFSET, etc. |
|
84 |
@return Request for load |
|
85 |
*/ |
|
86 |
- (VKRequest *)getFollowers:(NSDictionary *)params; |
|
87 |
@end |