@@ -56,7 +56,7 @@ - (void)getAccountDetailsWithSuccess:(void (^)(RemoteUser *remoteUser))success
5656 NSString *requestUrl = [self pathForEndpoint: @" me"
5757 withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1];
5858
59- [self .wordPressComRestApi GET : requestUrl
59+ [self .wordPressComRESTAPI get : requestUrl
6060 parameters: nil
6161 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
6262 if (!success) {
@@ -108,7 +108,7 @@ - (void)updateBlogsVisibility:(NSDictionary *)blogs
108108 };
109109 NSString *path = [self pathForEndpoint: @" me/sites"
110110 withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1];
111- [self .wordPressComRestApi POST : path
111+ [self .wordPressComRESTAPI post : path
112112 parameters: parameters
113113 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
114114 if (success) {
@@ -127,7 +127,7 @@ - (void)isPasswordlessAccount:(NSString *)identifier success:(void (^)(BOOL pass
127127
128128 NSString *path = [self pathForEndpoint: [NSString stringWithFormat: @" users/%@ /auth-options" , encodedIdentifier]
129129 withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1];
130- [self .wordPressComRestApi GET : path
130+ [self .wordPressComRESTAPI get : path
131131 parameters: nil
132132 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
133133 if (!success) {
@@ -149,7 +149,7 @@ - (void)isEmailAvailable:(NSString *)email success:(void (^)(BOOL available))suc
149149 static NSString * const errorEmailAddressInvalid = @" invalid" ;
150150 static NSString * const errorEmailAddressTaken = @" taken" ;
151151
152- [self .wordPressComRestApi GET :@" is-available/email"
152+ [self .wordPressComRESTAPI get :@" is-available/email"
153153 parameters: @{ @" q" : email, @" format" : @" json" }
154154 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
155155 if ([responseObject isKindOfClass: [NSDictionary class ]]) {
@@ -211,7 +211,7 @@ - (void)isUsernameAvailable:(NSString *)username
211211 success : (void (^)(BOOL available))success
212212 failure : (void (^)(NSError *error))failure
213213{
214- [self .wordPressComRestApi GET :@" is-available/username"
214+ [self .wordPressComRESTAPI get :@" is-available/username"
215215 parameters: @{ @" q" : username, @" format" : @" json" }
216216 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
217217 if (!success) {
@@ -317,7 +317,7 @@ - (void)requestWPComMagicLinkForEmail:(NSString *)email
317317 [params addEntriesFromDictionary: extraParams];
318318 }
319319
320- [self .wordPressComRestApi POST : path
320+ [self .wordPressComRESTAPI post : path
321321 parameters: [NSDictionary dictionaryWithDictionary: params]
322322 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
323323 if (success) {
@@ -336,7 +336,7 @@ - (void)requestVerificationEmailWithSucccess:(void (^)(void))success
336336 NSString *path = [self pathForEndpoint: @" me/send-verification-email"
337337 withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1];
338338
339- [self .wordPressComRestApi POST : path parameters: nil success: ^(id _Nonnull responseObject, NSHTTPURLResponse * _Nullable httpResponse) {
339+ [self .wordPressComRESTAPI post : path parameters: nil success: ^(id _Nonnull responseObject, NSHTTPURLResponse * _Nullable httpResponse) {
340340 if (success) {
341341 success ();
342342 }
@@ -355,7 +355,7 @@ - (void)getBlogsWithParameters:(NSDictionary *)parameters
355355{
356356 NSString *requestUrl = [self pathForEndpoint: @" me/sites"
357357 withVersion: ServiceRemoteWordPressComRESTApiVersion_1_2];
358- [self .wordPressComRestApi GET : requestUrl
358+ [self .wordPressComRESTAPI get : requestUrl
359359 parameters: parameters
360360 success: ^(id responseObject, NSHTTPURLResponse *httpResponse) {
361361 if (success) {
0 commit comments