@@ -41,7 +41,7 @@ - (void)getCommentsWithMaximumCount:(NSInteger)maximumComments
4141 [parameters removeObjectForKey: @" status" ];
4242 parameters[@" status" ] = [self parameterForCommentStatus: statusFilter];
4343
44- [self .wordPressComRestApi GET : requestUrl
44+ [self .wordPressComRESTAPI get : requestUrl
4545 parameters: parameters
4646 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
4747 if (success) {
@@ -84,7 +84,7 @@ - (void)getCommentWithID:(NSNumber *)commentID
8484 NSString *requestUrl = [self pathForEndpoint: path
8585 withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1];
8686
87- [self .wordPressComRestApi GET : requestUrl
87+ [self .wordPressComRESTAPI get : requestUrl
8888 parameters: nil
8989 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
9090 RemoteComment *comment = [self remoteCommentFromJSONDictionary: responseObject];
@@ -116,7 +116,7 @@ - (void)createComment:(RemoteComment *)comment
116116 @" content" : comment.content ,
117117 @" context" : @" edit" ,
118118 };
119- [self .wordPressComRestApi POST : requestUrl
119+ [self .wordPressComRESTAPI post : requestUrl
120120 parameters: parameters
121121 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
122122 // TODO: validate response
@@ -147,7 +147,7 @@ - (void)updateComment:(RemoteComment *)comment
147147 @" context" : @" edit" ,
148148 };
149149
150- [self .wordPressComRestApi POST : requestUrl
150+ [self .wordPressComRESTAPI post : requestUrl
151151 parameters: parameters
152152 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
153153 // TODO: validate response
@@ -174,7 +174,7 @@ - (void)moderateComment:(RemoteComment *)comment
174174 @" status" : [self remoteStatusWithStatus: comment.status],
175175 @" context" : @" edit" ,
176176 };
177- [self .wordPressComRestApi POST : requestUrl
177+ [self .wordPressComRESTAPI post : requestUrl
178178 parameters: parameters
179179 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
180180 // TODO: validate response
@@ -197,7 +197,7 @@ - (void)trashComment:(RemoteComment *)comment
197197 NSString *requestUrl = [self pathForEndpoint: path
198198 withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1];
199199
200- [self .wordPressComRestApi POST : requestUrl
200+ [self .wordPressComRESTAPI post : requestUrl
201201 parameters: nil
202202 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
203203 if (success) {
@@ -226,7 +226,7 @@ - (void)syncHierarchicalCommentsForPost:(NSNumber *)postID
226226 NSDictionary *parameters = @{
227227 @" force" : @" wpcom" // Force fetching data from shadow site on Jetpack sites
228228 };
229- [self .wordPressComRestApi GET : requestUrl
229+ [self .wordPressComRESTAPI get : requestUrl
230230 parameters: parameters
231231 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
232232 if (success) {
@@ -258,7 +258,7 @@ - (void)updateCommentWithID:(NSNumber *)commentID
258258 @" content" : content,
259259 @" context" : @" edit" ,
260260 };
261- [self .wordPressComRestApi POST : requestUrl
261+ [self .wordPressComRESTAPI post : requestUrl
262262 parameters: parameters
263263 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
264264 if (success) {
@@ -282,7 +282,7 @@ - (void)replyToPostWithID:(NSNumber *)postID
282282
283283 NSDictionary *parameters = @{@" content" : content};
284284
285- [self .wordPressComRestApi POST : requestUrl
285+ [self .wordPressComRESTAPI post : requestUrl
286286 parameters: parameters
287287 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
288288 if (success) {
@@ -310,7 +310,7 @@ - (void)replyToCommentWithID:(NSNumber *)commentID
310310 @" content" : content,
311311 @" context" : @" edit" ,
312312 };
313- [self .wordPressComRestApi POST : requestUrl
313+ [self .wordPressComRESTAPI post : requestUrl
314314 parameters: parameters
315315 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
316316 if (success) {
@@ -339,7 +339,7 @@ - (void)moderateCommentWithID:(NSNumber *)commentID
339339 @" context" : @" edit" ,
340340 };
341341
342- [self .wordPressComRestApi POST : requestUrl
342+ [self .wordPressComRESTAPI post : requestUrl
343343 parameters: parameters
344344 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
345345 if (success) {
@@ -360,7 +360,7 @@ - (void)trashCommentWithID:(NSNumber *)commentID
360360 NSString *requestUrl = [self pathForEndpoint: path
361361 withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1];
362362
363- [self .wordPressComRestApi POST : requestUrl
363+ [self .wordPressComRESTAPI post : requestUrl
364364 parameters: nil
365365 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
366366 if (success) {
@@ -381,7 +381,7 @@ - (void)likeCommentWithID:(NSNumber *)commentID
381381 NSString *requestUrl = [self pathForEndpoint: path
382382 withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1];
383383
384- [self .wordPressComRestApi POST : requestUrl
384+ [self .wordPressComRESTAPI post : requestUrl
385385 parameters: nil
386386 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
387387 if (success) {
@@ -402,7 +402,7 @@ - (void)unlikeCommentWithID:(NSNumber *)commentID
402402 NSString *requestUrl = [self pathForEndpoint: path
403403 withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1];
404404
405- [self .wordPressComRestApi POST : requestUrl
405+ [self .wordPressComRESTAPI post : requestUrl
406406 parameters: nil
407407 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
408408 if (success) {
@@ -444,7 +444,7 @@ - (void)getLikesForCommentID:(NSNumber *)commentID
444444 parameters[@" exclude" ] = excludeUserIDs;
445445 }
446446
447- [self .wordPressComRestApi GET : requestUrl
447+ [self .wordPressComRESTAPI get : requestUrl
448448 parameters: parameters
449449 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
450450 if (success) {
0 commit comments