Skip to content

Instantly share code, notes, and snippets.

@mpurbo
Created February 17, 2012 11:51
Show Gist options
  • Save mpurbo/1852930 to your computer and use it in GitHub Desktop.
Save mpurbo/1852930 to your computer and use it in GitHub Desktop.
geomon-client-ios: ユーザーの登録(同期のリクエスト)
// 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