<?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: C# to get access token in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/C-to-get-access-token/m-p/255811#M14802</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="c#code.JPG" style="width: 993px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/2000i51C830B3C30EBA25/image-size/large?v=v2&amp;amp;px=999" role="button" title="c#code.JPG" alt="c#code.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 487px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/2001i1EED8C348CB6049D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks for your Reply ,&lt;/P&gt;
&lt;P&gt;This is what my code used&amp;nbsp; to get access token .&lt;/P&gt;
&lt;P&gt;I am using Visual Studio version 2015.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get access token&amp;nbsp;if&amp;nbsp; I pass same parameters in Insomnia , it throws&amp;nbsp; no issue in running Insomnia.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards and Thanks ,&lt;/P&gt;
&lt;P&gt;Naveen&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2017 04:46:08 GMT</pubDate>
    <dc:creator>navinkumar</dc:creator>
    <dc:date>2017-12-08T04:46:08Z</dc:date>
    <item>
      <title>C# to get access token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/C-to-get-access-token/m-p/254607#M14716</link>
      <description>&lt;P&gt;Error&amp;nbsp; Message :Additional information: The remote server returned an error: (500) Internal Server Error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i am developing&amp;nbsp; an application in Asp.net mvc to integrate drobbox .&lt;/P&gt;
&lt;P&gt;i am creating my web service to get access token from the dropbox by this following&amp;nbsp; method&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;public string PostRequest(string postUrl, string contentType, string parameter, string access_token)
{
using (WebClient client = new WebClient())
{
client.Headers[HttpRequestHeader.ContentType] = contentType;
if (!string.IsNullOrEmpty(access_token))
client.Headers["Authorization"] = access_token;
string result = client.UploadString(postUrl, parameter);
return result;
}
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here though&amp;nbsp; i pass all the parameters i get error .&lt;/P&gt;
&lt;P&gt;it does not throw error while checking in Insomnia&amp;nbsp; client -- getting the accesstoken perfectly .&lt;/P&gt;
&lt;P&gt;Help me to fix the issue..&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Naveen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;when i run my application i get an error message&amp;nbsp;&lt;SPAN&gt;Additional information: The remote server returned an error: (500) Internal Server Error.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 17:11:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/C-to-get-access-token/m-p/254607#M14716</guid>
      <dc:creator>navinkumar</dc:creator>
      <dc:date>2020-05-29T17:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: C# to get access token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/C-to-get-access-token/m-p/254671#M14718</link>
      <description>I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with:&lt;BR /&gt;&lt;BR /&gt;- the name and version of the platform and SDK/library you are using.&lt;BR /&gt;- the steps to reproduce the issue, including the rest of the relevant code snippet(s).&lt;BR /&gt;- the full text of the error/any output. (Feel free to include screenshots if it helps.)</description>
      <pubDate>Wed, 29 Nov 2017 16:57:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/C-to-get-access-token/m-p/254671#M14718</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-11-29T16:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: C# to get access token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/C-to-get-access-token/m-p/255811#M14802</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="c#code.JPG" style="width: 993px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/2000i51C830B3C30EBA25/image-size/large?v=v2&amp;amp;px=999" role="button" title="c#code.JPG" alt="c#code.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 487px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/2001i1EED8C348CB6049D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks for your Reply ,&lt;/P&gt;
&lt;P&gt;This is what my code used&amp;nbsp; to get access token .&lt;/P&gt;
&lt;P&gt;I am using Visual Studio version 2015.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get access token&amp;nbsp;if&amp;nbsp; I pass same parameters in Insomnia , it throws&amp;nbsp; no issue in running Insomnia.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards and Thanks ,&lt;/P&gt;
&lt;P&gt;Naveen&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 04:46:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/C-to-get-access-token/m-p/255811#M14802</guid>
      <dc:creator>navinkumar</dc:creator>
      <dc:date>2017-12-08T04:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: C# to get access token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/C-to-get-access-token/m-p/255876#M14810</link>
      <description>Unfortunately this screenshot doesn't offer much more information, so I can't say what the issue is. For example, I don't see what the "UploadString" method is doing.&lt;BR /&gt;&lt;BR /&gt;If you can share the 'X-Dropbox-Request-Id' response header value at least, I may be able to investigate based on that.</description>
      <pubDate>Fri, 08 Dec 2017 16:29:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/C-to-get-access-token/m-p/255876#M14810</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-12-08T16:29:20Z</dc:date>
    </item>
  </channel>
</rss>

