Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 877d35eda9
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (24 sloc) 0.85 kb
//
// ANUnrepostPostRequest.m
// AppNetKit
//
// Created by Brent Royal-Gordon on 9/28/12.
// Copyright (c) 2012 Architechies. See README.md for licensing information.
//
#import "ANUnrepostPostRequest.h"
@implementation ANUnrepostPostRequest
- (NSURL *)URL {
return [NSURL URLWithString:[NSString stringWithFormat:@"posts/%lld/repost", self.postID] relativeToURL:[self.session URLForStreamAPIVersion:ANStreamAPIVersion0]];
}
- (NSDictionary *)parameters {
return nil;
}
- (ANRequestMethod)method {
return ANRequestMethodDelete;
}
- (void)sendRequestWithCompletion:(ANPostRequestCompletion)completion {
[self sendRequestWithRepresentationCompletion:^(ANResponse * response, id rep, NSError *error) {
[self.session completePostRequest:completion withResponse:response representation:rep error:error];
}];
}
@end
Jump to Line
Something went wrong with that request. Please try again.