<?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 PHP Login with Dropbox issues. in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Login-with-Dropbox-issues/m-p/351626#M20126</link>
    <description>&lt;P&gt;Hello, im following the guide on how to use the APIs so my app can use Login with Dropbox. But im having issues getting a token.&lt;/P&gt;&lt;P&gt;This is my code to see why im getting the following error.&lt;/P&gt;&lt;PRE&gt;&amp;lt;?php

$request = new HttpRequest();
$request-&amp;gt;setUrl('https://api.dropboxapi.com/2/auth/token/from_oauth1');
$request-&amp;gt;setMethod(HTTP_METH_POST);

$request-&amp;gt;setHeaders(array(
  'postman-token' =&amp;gt; '273abf8c-7816-67c2-0949-f24bfc57383c',
  'cache-control' =&amp;gt; 'no-cache',
  'content-type' =&amp;gt; 'application/json',
  'authorization' =&amp;gt; 'Basic m1qbv920v0xwxlm:xxxxxx'
));

$request-&amp;gt;setBody('{
    "oauth1_token": "m1qbv920v0xwxlm",
    "oauth1_token_secret": "xxxxx"
}');

try {
  $response = $request-&amp;gt;send();

  echo $response-&amp;gt;getBody();
} catch (HttpException $ex) {
  echo $ex;
}&lt;/PRE&gt;&lt;P&gt;This is the error.&lt;/P&gt;&lt;PRE&gt;{
    "error_summary": "invalid_oauth1_token_info/.",
    "error": {
        ".tag": "invalid_oauth1_token_info"
    }
}&lt;/PRE&gt;</description>
    <pubDate>Mon, 24 Jun 2019 09:46:29 GMT</pubDate>
    <dc:creator>SAFCLiam</dc:creator>
    <dc:date>2019-06-24T09:46:29Z</dc:date>
    <item>
      <title>PHP Login with Dropbox issues.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Login-with-Dropbox-issues/m-p/351626#M20126</link>
      <description>&lt;P&gt;Hello, im following the guide on how to use the APIs so my app can use Login with Dropbox. But im having issues getting a token.&lt;/P&gt;&lt;P&gt;This is my code to see why im getting the following error.&lt;/P&gt;&lt;PRE&gt;&amp;lt;?php

$request = new HttpRequest();
$request-&amp;gt;setUrl('https://api.dropboxapi.com/2/auth/token/from_oauth1');
$request-&amp;gt;setMethod(HTTP_METH_POST);

$request-&amp;gt;setHeaders(array(
  'postman-token' =&amp;gt; '273abf8c-7816-67c2-0949-f24bfc57383c',
  'cache-control' =&amp;gt; 'no-cache',
  'content-type' =&amp;gt; 'application/json',
  'authorization' =&amp;gt; 'Basic m1qbv920v0xwxlm:xxxxxx'
));

$request-&amp;gt;setBody('{
    "oauth1_token": "m1qbv920v0xwxlm",
    "oauth1_token_secret": "xxxxx"
}');

try {
  $response = $request-&amp;gt;send();

  echo $response-&amp;gt;getBody();
} catch (HttpException $ex) {
  echo $ex;
}&lt;/PRE&gt;&lt;P&gt;This is the error.&lt;/P&gt;&lt;PRE&gt;{
    "error_summary": "invalid_oauth1_token_info/.",
    "error": {
        ".tag": "invalid_oauth1_token_info"
    }
}&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Jun 2019 09:46:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Login-with-Dropbox-issues/m-p/351626#M20126</guid>
      <dc:creator>SAFCLiam</dc:creator>
      <dc:date>2019-06-24T09:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: PHP Login with Dropbox issues.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Login-with-Dropbox-issues/m-p/351765#M20131</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The specific&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#auth-token-from_oauth1" rel="noreferrer" target="_blank"&gt;/2/auth/token/from_oauth1&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;endpoint you're using is only be for migrating legacy OAuth 1 access tokens to OAuth 2. If you're just building your app now, you wouldn't have any OAuth 1 access tokens so you wouldn't need to use that endpoint.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;The full documentation for the Dropbox OAuth endpoints can be found &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_self"&gt;here&lt;/A&gt;. Another helpful resource is our &lt;A href="https://www.dropbox.com/developers/reference/oauth-guide?_tk=guides_lp&amp;amp;_ad=deepdive2&amp;amp;_camp=oauth" target="_self"&gt;OAuth developer guide&lt;/A&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 18:50:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Login-with-Dropbox-issues/m-p/351765#M20131</guid>
      <dc:creator>TaylorKrusen</dc:creator>
      <dc:date>2019-06-24T18:50:34Z</dc:date>
    </item>
  </channel>
</rss>

