<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Get user's account info in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-user-s-account-info/m-p/211281#M10609</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I need help.&lt;/P&gt;&lt;P&gt;How i can&amp;nbsp;get linked user's dropbox account info (name/email) in Objective-c by API v2 ?&lt;/P&gt;&lt;P&gt;In v1 i did this by&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;[self.restClient loadAccountInfo];&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;in method:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;- (void)restClient:(DBRestClient*)client loadedAccountInfo:(DBAccountInfo*)info&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:24:49 GMT</pubDate>
    <dc:creator>Alex_Shekunsky</dc:creator>
    <dc:date>2019-05-29T09:24:49Z</dc:date>
    <item>
      <title>Get user's account info</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-user-s-account-info/m-p/211281#M10609</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I need help.&lt;/P&gt;&lt;P&gt;How i can&amp;nbsp;get linked user's dropbox account info (name/email) in Objective-c by API v2 ?&lt;/P&gt;&lt;P&gt;In v1 i did this by&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;[self.restClient loadAccountInfo];&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;in method:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;- (void)restClient:(DBRestClient*)client loadedAccountInfo:(DBAccountInfo*)info&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:24:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-user-s-account-info/m-p/211281#M10609</guid>
      <dc:creator>Alex_Shekunsky</dc:creator>
      <dc:date>2019-05-29T09:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get user's account info</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-user-s-account-info/m-p/211439#M10628</link>
      <description>&lt;P&gt;If you're using the API v2 Objective-C SDK, the equivalent method is&amp;nbsp;getCurrentAccount:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBUSERSRoutes.html#/c:objc(cs)DBUSERSRoutes(im)getCurrentAccount" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBUSERSRoutes.html#/c:objc(cs)DBUSERSRoutes(im)getCurrentAccount&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example of how you would make an "RPC-style" request like that (for creating a folder in this case):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c#rpc-style-request" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-obj-c#rpc-style-request&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Xcode should auto-complete most of the boilerplate code for you though.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 19:09:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-user-s-account-info/m-p/211439#M10628</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-13T19:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get user's account info</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-user-s-account-info/m-p/211470#M10639</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 22:18:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-user-s-account-info/m-p/211470#M10639</guid>
      <dc:creator>Alex_Shekunsky</dc:creator>
      <dc:date>2017-03-13T22:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get user's account info</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-user-s-account-info/m-p/227015#M12349</link>
      <description>&lt;P&gt;If you have a DBUserClient object (e.g. from [DBClientsManager authorizedClient]), you can get the info for that account with this call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[[client.usersRoutes getCurrentAccount] setResponseBlock:^(DBUSERSFullAccount * _Nullable result, DBNilObject * _Nullable routeError, DBRequestError * _Nullable networkError)
{
	if (networkError != nil)
	{
		NSLog(@"getCurrentAccount failed: network error");
	}
	else if (routeError != nil)
	{
		NSLog(@"getCurrentAccount failed: route error");
	}
	else
	{
		NSLog(@"got Dropbox account email: %@", result.email);
	}
}];&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Jun 2017 15:31:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-user-s-account-info/m-p/227015#M12349</guid>
      <dc:creator>tomsax</dc:creator>
      <dc:date>2017-06-18T15:31:58Z</dc:date>
    </item>
  </channel>
</rss>

