@@ -26,7 +26,7 @@ - (void)getCommentsWithMaximumCount:(NSInteger)maximumComments
2626{
2727 NSString *path = [NSString stringWithFormat: @" sites/%@ /comments" , self .siteID];
2828 NSString *requestUrl = [self pathForEndpoint: path
29- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
29+ withVersion: WordPressComRESTAPIVersion_1_1 ];
3030
3131 NSMutableDictionary *parameters = [NSMutableDictionary dictionaryWithDictionary: @{
3232 @" force" : @" wpcom" , // Force fetching data from shadow site on Jetpack sites
@@ -82,7 +82,7 @@ - (void)getCommentWithID:(NSNumber *)commentID
8282{
8383 NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ " , self .siteID, commentID];
8484 NSString *requestUrl = [self pathForEndpoint: path
85- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
85+ withVersion: WordPressComRESTAPIVersion_1_1 ];
8686
8787 [self .wordPressComRESTAPI get: requestUrl
8888 parameters: nil
@@ -110,7 +110,7 @@ - (void)createComment:(RemoteComment *)comment
110110 }
111111
112112 NSString *requestUrl = [self pathForEndpoint: path
113- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
113+ withVersion: WordPressComRESTAPIVersion_1_1 ];
114114
115115 NSDictionary *parameters = @{
116116 @" content" : comment.content ,
@@ -137,7 +137,7 @@ - (void)updateComment:(RemoteComment *)comment
137137{
138138 NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ " , self .siteID, comment.commentID];
139139 NSString *requestUrl = [self pathForEndpoint: path
140- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
140+ withVersion: WordPressComRESTAPIVersion_1_1 ];
141141
142142 NSDictionary *parameters = @{
143143 @" content" : comment.content ,
@@ -168,7 +168,7 @@ - (void)moderateComment:(RemoteComment *)comment
168168{
169169 NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ " , self .siteID, comment.commentID];
170170 NSString *requestUrl = [self pathForEndpoint: path
171- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
171+ withVersion: WordPressComRESTAPIVersion_1_1 ];
172172
173173 NSDictionary *parameters = @{
174174 @" status" : [self remoteStatusWithStatus: comment.status],
@@ -195,7 +195,7 @@ - (void)trashComment:(RemoteComment *)comment
195195{
196196 NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ /delete" , self .siteID, comment.commentID];
197197 NSString *requestUrl = [self pathForEndpoint: path
198- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
198+ withVersion: WordPressComRESTAPIVersion_1_1 ];
199199
200200 [self .wordPressComRESTAPI post: requestUrl
201201 parameters: nil
@@ -221,7 +221,7 @@ - (void)syncHierarchicalCommentsForPost:(NSNumber *)postID
221221{
222222 NSString *path = [NSString stringWithFormat: @" sites/%@ /posts/%@ /replies?order=ASC&hierarchical=1&page=%lu &number=%lu " , self .siteID, postID, (unsigned long )page, (unsigned long )number];
223223 NSString *requestUrl = [self pathForEndpoint: path
224- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
224+ withVersion: WordPressComRESTAPIVersion_1_1 ];
225225
226226 NSDictionary *parameters = @{
227227 @" force" : @" wpcom" // Force fetching data from shadow site on Jetpack sites
@@ -252,7 +252,7 @@ - (void)updateCommentWithID:(NSNumber *)commentID
252252{
253253 NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ " , self .siteID, commentID];
254254 NSString *requestUrl = [self pathForEndpoint: path
255- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
255+ withVersion: WordPressComRESTAPIVersion_1_1 ];
256256
257257 NSDictionary *parameters = @{
258258 @" content" : content,
@@ -278,7 +278,7 @@ - (void)replyToPostWithID:(NSNumber *)postID
278278{
279279 NSString *path = [NSString stringWithFormat: @" sites/%@ /posts/%@ /replies/new" , self .siteID, postID];
280280 NSString *requestUrl = [self pathForEndpoint: path
281- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
281+ withVersion: WordPressComRESTAPIVersion_1_1 ];
282282
283283 NSDictionary *parameters = @{@" content" : content};
284284
@@ -304,7 +304,7 @@ - (void)replyToCommentWithID:(NSNumber *)commentID
304304{
305305 NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ /replies/new" , self .siteID, commentID];
306306 NSString *requestUrl = [self pathForEndpoint: path
307- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
307+ withVersion: WordPressComRESTAPIVersion_1_1 ];
308308
309309 NSDictionary *parameters = @{
310310 @" content" : content,
@@ -332,7 +332,7 @@ - (void)moderateCommentWithID:(NSNumber *)commentID
332332{
333333 NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ " , self .siteID, commentID];
334334 NSString *requestUrl = [self pathForEndpoint: path
335- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
335+ withVersion: WordPressComRESTAPIVersion_1_1 ];
336336
337337 NSDictionary *parameters = @{
338338 @" status" : status,
@@ -358,7 +358,7 @@ - (void)trashCommentWithID:(NSNumber *)commentID
358358{
359359 NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ /delete" , self .siteID, commentID];
360360 NSString *requestUrl = [self pathForEndpoint: path
361- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
361+ withVersion: WordPressComRESTAPIVersion_1_1 ];
362362
363363 [self .wordPressComRESTAPI post: requestUrl
364364 parameters: nil
@@ -379,7 +379,7 @@ - (void)likeCommentWithID:(NSNumber *)commentID
379379{
380380 NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ /likes/new" , self .siteID, commentID];
381381 NSString *requestUrl = [self pathForEndpoint: path
382- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
382+ withVersion: WordPressComRESTAPIVersion_1_1 ];
383383
384384 [self .wordPressComRESTAPI post: requestUrl
385385 parameters: nil
@@ -400,7 +400,7 @@ - (void)unlikeCommentWithID:(NSNumber *)commentID
400400{
401401 NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ /likes/mine/delete" , self .siteID, commentID];
402402 NSString *requestUrl = [self pathForEndpoint: path
403- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
403+ withVersion: WordPressComRESTAPIVersion_1_1 ];
404404
405405 [self .wordPressComRESTAPI post: requestUrl
406406 parameters: nil
@@ -426,7 +426,7 @@ - (void)getLikesForCommentID:(NSNumber *)commentID
426426
427427 NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ /likes" , self .siteID, commentID];
428428 NSString *requestUrl = [self pathForEndpoint: path
429- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_2 ];
429+ withVersion: WordPressComRESTAPIVersion_1_2 ];
430430 NSNumber *siteID = self.siteID ;
431431
432432 // If no count provided, default to endpoint max.
0 commit comments