Skip to content
This repository
Newer
Older
100644 32 lines (24 sloc) 0.85 kb
17eff208 »
2012-09-29 Add requests for handling reposts
1 //
2 // ANUnrepostPostRequest.m
8a131700 »
2012-10-16 Fix project name in various files
3 // AppNetKit
17eff208 »
2012-09-29 Add requests for handling reposts
4 //
5 // Created by Brent Royal-Gordon on 9/28/12.
16871fc1 »
2012-10-16 Declare AppNetKit to be MIT-licensed
6 // Copyright (c) 2012 Architechies. See README.md for licensing information.
17eff208 »
2012-09-29 Add requests for handling reposts
7 //
8
9 #import "ANUnrepostPostRequest.h"
10
11 @implementation ANUnrepostPostRequest
12
13 - (NSURL *)URL {
14 return [NSURL URLWithString:[NSString stringWithFormat:@"posts/%lld/repost", self.postID] relativeToURL:[self.session URLForStreamAPIVersion:ANStreamAPIVersion0]];
15 }
16
17 - (NSDictionary *)parameters {
18 return nil;
19 }
20
21 - (ANRequestMethod)method {
22 return ANRequestMethodDelete;
23 }
24
25 - (void)sendRequestWithCompletion:(ANPostRequestCompletion)completion {
26 [self sendRequestWithRepresentationCompletion:^(ANResponse * response, id rep, NSError *error) {
27 [self.session completePostRequest:completion withResponse:response representation:rep error:error];
28 }];
29 }
30
31 @end
Something went wrong with that request. Please try again.