Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

User Id in DropBox SDK

Tags:

iphone

dropbox

How can i find the user id of current User who has logined through XCode In DropBox SDK. I need it done programmatically.

like image 368
Mobile Developer iOS Android Avatar asked Dec 01 '22 03:12

Mobile Developer iOS Android


1 Answers

In your code after you've linked, you can add:

[self.restClient loadAccountInfo];

and the delegate:

- (void)restClient:(DBRestClient*)client loadedAccountInfo:(DBAccountInfo*)info {
    NSLog(@"UserID: %@ %@", [info displayName], [info userId]);
}
like image 104
Jordan Avatar answered Dec 25 '22 04:12

Jordan