<?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: Generated access token in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generated-access-token/m-p/173255#M6637</link>
    <description>&lt;P&gt;It looks like the issue is that your url parameter isn't properly form URL encoded. For example it should look like this:&lt;/P&gt;
&lt;P&gt;curl_setopt($ch, CURLOPT_POSTFIELDS, "url=http%3A%2F%2F2.bp.blogspot.com%2F-5BRZLo7rynA%2FUzLTXxHNO5I%2FAAAAAAAAAOE%2F43_jWGpYcNc%2Fs1600%2Fbmw_logo_vector_by_celinah006-d66yn5l.png");&lt;/P&gt;
&lt;P&gt;We'll look into returning a better error in this case though.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2016 00:46:19 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-04-08T00:46:19Z</dc:date>
    <item>
      <title>Generated access token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generated-access-token/m-p/173252#M6634</link>
      <description>&lt;P&gt;Hello, for unknown reason this chunk of code is not working for me (PHP). I used the "Generated access token" button to get me one.&lt;/P&gt;
&lt;P&gt;$headers = array();&lt;BR /&gt;$headers[] = "Authorization: Bearer IFwO9iV...";&lt;BR /&gt;$ch = curl_init();&lt;BR /&gt;curl_setopt($ch, CURLOPT_HEADER, $headers);&lt;BR /&gt;curl_setopt($ch, CURLOPT_URL, "&lt;A href="https://api.dropbox.com/1/account/info" rel="nofollow noreferrer" target="_blank"&gt;https://api.dropbox.com/1/account/info&lt;/A&gt;");&lt;BR /&gt;curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);&lt;BR /&gt;$out = curl_exec($ch);&lt;/P&gt;
&lt;P&gt;I always get this output: HTTP/1.1 400 Bad Request Server: nginx Date: Wed, 06 Apr 2016 13:20:28 GMT Content-Type: application/json Transfer-Encoding: chunked Connection: keep-alive X-Dropbox-Request-Id: d72abf... {"error_description": "No auth function available for given request", "error": "invalid_request"}&lt;/P&gt;
&lt;P&gt;Please assist.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:34:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generated-access-token/m-p/173252#M6634</guid>
      <dc:creator>Choyce T.</dc:creator>
      <dc:date>2019-05-29T09:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Generated access token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generated-access-token/m-p/173253#M6635</link>
      <description>&lt;P&gt;It looks like you have the wrong curl option name for setting headers. It should be CURLOPT_HTTPHEADER instead of&amp;nbsp;CURLOPT_HEADER.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 00:36:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generated-access-token/m-p/173253#M6635</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-04-07T00:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Generated access token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generated-access-token/m-p/173254#M6636</link>
      <description>&lt;P&gt;Hello Gregory, many thanks for your help, it worked seamlessly. If you could also look into this code, as I'm getting an "Internal Server Error" when trying to upload a file (png) from a url:&lt;/P&gt;
&lt;P&gt;$headers = array();&lt;BR /&gt;$headers[] = 'Authorization: Bearer IFwO9iVNUF...';&lt;BR /&gt;$ch = curl_init();&lt;BR /&gt;curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);&lt;BR /&gt;curl_setopt($ch, CURLOPT_URL, '&lt;A href="https://api.dropbox.com/1/save_url/auto/downloaded.png" rel="nofollow noreferrer"&gt;https://api.dropbox.com/1/save_url/auto/downloaded.png&lt;/A&gt;');&lt;BR /&gt;curl_setopt($ch, CURLOPT_POSTFIELDS, "url=\"&lt;A href="http://2.bp.blogspot.com/-5BRZLo7rynA/UzLTXxHNO5I/AAAAAAAAAOE/43_jWGpYcNc/s1600/bmw_logo_vector_by_celinah006-d66yn5l.png%5C" rel="nofollow noreferrer"&gt;http://2.bp.blogspot.com/-5BRZLo7rynA/UzLTXxHNO5I/AAAAAAAAAOE/43_jWGpYcNc/s1600/bmw_logo_vector_by_celinah006-d66yn5l.png\&lt;/A&gt;");&lt;BR /&gt;curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);&lt;BR /&gt;$out = curl_exec($ch);&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 12:25:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generated-access-token/m-p/173254#M6636</guid>
      <dc:creator>Choyce T.</dc:creator>
      <dc:date>2016-04-07T12:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Generated access token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generated-access-token/m-p/173255#M6637</link>
      <description>&lt;P&gt;It looks like the issue is that your url parameter isn't properly form URL encoded. For example it should look like this:&lt;/P&gt;
&lt;P&gt;curl_setopt($ch, CURLOPT_POSTFIELDS, "url=http%3A%2F%2F2.bp.blogspot.com%2F-5BRZLo7rynA%2FUzLTXxHNO5I%2FAAAAAAAAAOE%2F43_jWGpYcNc%2Fs1600%2Fbmw_logo_vector_by_celinah006-d66yn5l.png");&lt;/P&gt;
&lt;P&gt;We'll look into returning a better error in this case though.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 00:46:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generated-access-token/m-p/173255#M6637</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-04-08T00:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Generated access token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generated-access-token/m-p/173256#M6638</link>
      <description>&lt;P&gt;Many thanks, worked like a charm.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 15:47:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generated-access-token/m-p/173256#M6638</guid>
      <dc:creator>Choyce T.</dc:creator>
      <dc:date>2016-04-08T15:47:11Z</dc:date>
    </item>
  </channel>
</rss>

