Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: kylebrowning/drupal-ios-sdk
base: 1639bd1130
...
head fork: kylebrowning/drupal-ios-sdk
compare: c20d87d85c
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Showing with 15 additions and 0 deletions.
  1. +4 −0 DIOSUser.h
  2. +11 −0 DIOSUser.m
View
4 DIOSUser.h
@@ -46,6 +46,10 @@
success:(void (^)(AFHTTPRequestOperation *operation, id responseObject)) success
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error)) failure;
+- (void)userRegister:(NSDictionary *)user
+ success:(void (^)(AFHTTPRequestOperation *operation, id responseObject)) success
+ failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error)) failure;
+
- (void)userUpdate:(NSDictionary *)user
success:(void (^)(AFHTTPRequestOperation *operation, id responseObject)) success
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error)) failure;
View
11 DIOSUser.m
@@ -63,6 +63,17 @@ - (void)userSave:(NSDictionary *)user
failure:failure];
}
+#pragma mark userRegister
+- (void)userRegister:(NSDictionary *)user
+ success:(void (^)(AFHTTPRequestOperation *operation, id responseObject)) success
+ failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error)) failure {
+
+ [[DIOSSession sharedSession] postPath:[NSString stringWithFormat:@"%@/%@/register", kDiosEndpoint, kDiosBaseUser]
+ parameters:user
+ success:success
+ failure:failure];
+}
+
#pragma mark userUpdate
- (void)userUpdate:(NSDictionary *)user
success:(void (^)(AFHTTPRequestOperation *operation, id responseObject)) success

No commit comments for this range

Something went wrong with that request. Please try again.