Created
February 17, 2012 11:51
-
-
Save mpurbo/1852930 to your computer and use it in GitHub Desktop.
geomon-client-ios: ユーザーの登録(同期のリクエスト)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MMGClient *client = ... | |
MMGObject *registerUserObj = [client registerUserWithId:@"baabaa" | |
name:@"Baa Baa Black Sheep" | |
email:@"[email protected]" | |
password:@"moomoo" | |
delegate:nil]; | |
if (registerUserObj.error != nil || registerUserObj.type != kMMGUser) { | |
NSLog(@"ユーザー登録のエラーが発生しました: %@", [registerUserObj.error localizedDescription]); | |
} else { | |
MMGUser *user = (MMGUser *)registerUserObj; | |
NSLog(@"ユーザーが登録されました、sid:%ld, id: %@, name:%@", user.sid, user.identifier, user.name); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment