Search code examples
iphonedropbox

User Id in DropBox SDK


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


Solution

  • 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]);
    }