<?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 Re: How to get email from dropbox api v2 using swift in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-email-from-dropbox-api-v2-using-swift/m-p/353109#M20196</link>
    <description>&lt;P&gt;The developer documentation would be a good place to get more info. Specifically, the &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#users-get_current_account" target="_self"&gt;users/get_current_account&lt;/A&gt; endpoint has more information about the response object (which&amp;nbsp;&lt;EM&gt;does&lt;/EM&gt;&amp;nbsp;contain the account's email address).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using the Swift Dropbox SDK, then the Swift-specific docs might also come in handy. Here's a link to the &lt;A href="https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/UsersRoutes.html#/s:13SwiftyDropbox11UsersRoutesC17getCurrentAccountAA10RpcRequestCyAA0C0C04FullG10SerializerCAA04VoidK0CGyF" target="_self"&gt;getCurrentAccount()&lt;/A&gt; method.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jul 2019 18:14:55 GMT</pubDate>
    <dc:creator>TaylorKrusen</dc:creator>
    <dc:date>2019-07-02T18:14:55Z</dc:date>
    <item>
      <title>How to get email from dropbox api v2 using swift</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-email-from-dropbox-api-v2-using-swift/m-p/353080#M20193</link>
      <description>&lt;P&gt;Hi, I am trying to figure out how to grab the email from a users account. I am currently able to log into dropbox properly, but cant seem to find information on this.&lt;/P&gt;
&lt;P&gt;I am also using flutter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;dropBoxChannel.&lt;/SPAN&gt;&lt;SPAN&gt;setMethodCallHandler&lt;/SPAN&gt;&lt;SPAN&gt;({&amp;#12;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;weak&lt;/SPAN&gt; &lt;SPAN&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;] (&lt;/SPAN&gt;&lt;SPAN&gt;call&lt;/SPAN&gt;&lt;SPAN&gt;: FlutterMethodCall, &lt;/SPAN&gt;&lt;SPAN&gt;result&lt;/SPAN&gt;&lt;SPAN&gt;: FlutterResult) &lt;/SPAN&gt;&lt;SPAN&gt;-&amp;gt;&lt;/SPAN&gt; &lt;SPAN&gt;Void&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;guard&lt;/SPAN&gt;&lt;SPAN&gt; call.&lt;/SPAN&gt;&lt;SPAN&gt;method&lt;/SPAN&gt; &lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;"retrieveAccount"&lt;/SPAN&gt; &lt;SPAN&gt;else&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;result&lt;/SPAN&gt;&lt;SPAN&gt;(FlutterMethodNotImplemented)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;//result(DropboxClient.users.getCurrentAccount());&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;})&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I noticed someone mention&amp;nbsp;DropboxClient.users.getCurrentAccount() was one way, but I am new to Swift and don't really understand how this could work. Also, where can I find more information about this?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Jul 2019 09:09:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-email-from-dropbox-api-v2-using-swift/m-p/353080#M20193</guid>
      <dc:creator>solsubzero</dc:creator>
      <dc:date>2019-07-16T09:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get email from dropbox api v2 using swift</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-email-from-dropbox-api-v2-using-swift/m-p/353109#M20196</link>
      <description>&lt;P&gt;The developer documentation would be a good place to get more info. Specifically, the &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#users-get_current_account" target="_self"&gt;users/get_current_account&lt;/A&gt; endpoint has more information about the response object (which&amp;nbsp;&lt;EM&gt;does&lt;/EM&gt;&amp;nbsp;contain the account's email address).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using the Swift Dropbox SDK, then the Swift-specific docs might also come in handy. Here's a link to the &lt;A href="https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/UsersRoutes.html#/s:13SwiftyDropbox11UsersRoutesC17getCurrentAccountAA10RpcRequestCyAA0C0C04FullG10SerializerCAA04VoidK0CGyF" target="_self"&gt;getCurrentAccount()&lt;/A&gt; method.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 18:14:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-email-from-dropbox-api-v2-using-swift/m-p/353109#M20196</guid>
      <dc:creator>TaylorKrusen</dc:creator>
      <dc:date>2019-07-02T18:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get email from dropbox api v2 using swift</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-email-from-dropbox-api-v2-using-swift/m-p/353126#M20198</link>
      <description>&lt;P&gt;func RetrieveEmail() {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; let client = DropboxClientsManager.authorizedClient!&lt;BR /&gt;&amp;nbsp; &amp;nbsp; print(client.users.getCurrentAccount())&lt;BR /&gt;&amp;nbsp; &amp;nbsp; let Dropboxclient = client.users.getCurrentAccount()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Dropboxclient.response { ( result, error) in&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print(result?.email ?? "test")&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For those who need an answer later on.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 19:22:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-email-from-dropbox-api-v2-using-swift/m-p/353126#M20198</guid>
      <dc:creator>solsubzero</dc:creator>
      <dc:date>2019-07-02T19:22:01Z</dc:date>
    </item>
  </channel>
</rss>

