Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 73d51e7

Browse files
committed
Make all GET requests in AccountServiceRemoteREST via new interface
1 parent fae09dd commit 73d51e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

WordPressKit/AccountServiceRemoteREST.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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) {
@@ -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

Comments
 (0)