/
ANSession+Requests.h
69 lines (48 loc) · 4.14 KB
/
ANSession+Requests.h
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//
// ANSession+Requests.h
// AppNetKit
//
// Created by Brent Royal-Gordon on 8/19/12.
// Copyright (c) 2012 Architechies. See README.md for licensing information.
//
#import "ANSession.h"
@interface ANSession (Requests)
- (void)accessTokenInformationWithCompletion:(ANAccessTokenInformationRequestCompletion)completion;
- (void)userWithID:(ANResourceID)ID completion:(ANUserRequestCompletion)completion;
- (void)userWithUsername:(NSString*)username completion:(ANUserRequestCompletion)completion;
- (void)usersMatchingSearchQuery:(NSString*)query completion:(ANUserListRequestCompletion)completion;
- (void)followUserWithID:(ANResourceID)ID completion:(ANUserRequestCompletion)completion;
- (void)unfollowUserWithID:(ANResourceID)ID completion:(ANUserRequestCompletion)completion;
- (void)followingsForUserWithID:(ANResourceID)ID completion:(ANUserListRequestCompletion)completion;
- (void)followersForUserWithID:(ANResourceID)ID completion:(ANUserListRequestCompletion)completion;
- (void)muteUserWithID:(ANResourceID)ID completion:(ANUserRequestCompletion)completion;
- (void)unmuteUserWithID:(ANResourceID)ID completion:(ANUserRequestCompletion)completion;
- (void)mutingsWithCompletion:(ANUserListRequestCompletion)completion;
- (void)postWithID:(ANResourceID)ID completion:(ANPostRequestCompletion)completion;
- (void)createPostFromDraft:(ANDraft*)draft completion:(ANPostRequestCompletion)completion;
- (void)deletePostWithID:(ANResourceID)ID completion:(ANPostRequestCompletion)completion;
- (void)postsForUserWithID:(ANResourceID)ID betweenID:(ANResourceID)sinceID andID:(ANResourceID)beforeID completion:(ANPostListRequestCompletion)completion;
- (void)postsMentioningUserWithID:(ANResourceID)ID betweenID:(ANResourceID)sinceID andID:(ANResourceID)beforeID completion:(ANPostListRequestCompletion)completion;
- (void)postsInStreamWithCompletion:(ANPostListRequestCompletion)completion;
- (void)postsInStreamBetweenID:(ANResourceID)sinceID andID:(ANResourceID)beforeID completion:(ANPostListRequestCompletion)completion;
- (void)postsInUnifiedStreamWithCompletion:(ANPostListRequestCompletion)completion;
- (void)postsInUnifiedStreamBetweenID:(ANResourceID)sinceID andID:(ANResourceID)beforeID completion:(ANPostListRequestCompletion)completion;
- (void)postsInGlobalStreamWithCompletion:(ANPostListRequestCompletion)completion;
- (void)postsInGlobalStreamBetweenID:(ANResourceID)sinceID andID:(ANResourceID)beforeID completion:(ANPostListRequestCompletion)completion;
- (void)postsWithTag:(NSString*)tag completion:(ANPostListRequestCompletion)completion;
- (void)postsWithTag:(NSString*)tag betweenID:(ANResourceID)sinceID andID:(ANResourceID)beforeID completion:(ANPostListRequestCompletion)completion;
- (void)postsReplyingToPostWithID:(ANResourceID)ID betweenID:(ANResourceID)sinceID andID:(ANResourceID)beforeID completion:(ANPostListRequestCompletion)completion;
- (void)starPostWithID:(ANResourceID)postID completion:(ANPostRequestCompletion)completion;
- (void)unstarPostWithID:(ANResourceID)postID completion:(ANPostRequestCompletion)completion;
- (void)postsStarredByUserWithID:(ANResourceID)userID betweenID:(ANResourceID)sinceID andID:(ANResourceID)beforeID completion:(ANPostListRequestCompletion)completion;
- (void)usersWithPostWithIDStarred:(ANResourceID)postID completion:(ANUserListRequestCompletion)completion;
- (void)repostPostWithID:(ANResourceID)postID completion:(ANPostRequestCompletion)completion;
- (void)unrepostPostWithID:(ANResourceID)postID completion:(ANPostRequestCompletion)completion;
- (void)usersWithPostWithIDReposted:(ANResourceID)postID completion:(ANUserListRequestCompletion)completion;
- (void)filtersWithCompletion:(ANFilterListRequestCompletion)completion;
- (void)deleteFiltersWithCompletion:(ANFilterListRequestCompletion)completion;
- (void)filterWithID:(ANResourceID)ID completion:(ANFilterRequestCompletion)completion;
- (void)createFilterFromDraft:(ANDraftFilter*)draftFilter completion:(ANFilterRequestCompletion)completion;
- (void)deleteFilterWithID:(ANResourceID)ID completion:(ANFilterRequestCompletion)completion;
- (void)updateFilterWithID:(ANResourceID)ID fromDraft:(ANDraftFilter*)draftFilter completion:(ANFilterRequestCompletion)completion;
@end