<?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 authenticate and stream a video file in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-authenticate-and-stream-a-video-file/m-p/727982#M32206</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1764082"&gt;@chakmangoo&lt;/a&gt; To clarify, the &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#file_requests-list" target="_blank"&gt;/2/file_requests/list_v2&lt;/A&gt; is for listing "&lt;A href="https://help.dropbox.com/share/create-file-request" target="_blank"&gt;file requests&lt;/A&gt;", not actual files. If you want to list the actual files in a folder, you should use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;/2/files/list_folder&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_blank"&gt;/2/files/list_folder/continue&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any case, you shouldn't be receiving an "Empty reply from server" error; that may indicate an issue with your network connection. If you're still seeing that, please share the full code/steps to reproduce the issue, and the full output. It may be useful to use the "-v" flag on curl to get verbose output. Be sure to redact your access token though.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 15:27:16 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2023-11-08T15:27:16Z</dc:date>
    <item>
      <title>How to authenticate and stream a video file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-authenticate-and-stream-a-video-file/m-p/727555#M32177</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question: How can I authenticate and stream a video file using api?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Context: I am working on a tool that should authenticate first to access a user file (I understand the token-ing process) and once I have access to a video file I want to stream it using C# dropbox api.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 06:25:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-authenticate-and-stream-a-video-file/m-p/727555#M32177</guid>
      <dc:creator>chakmangoo</dc:creator>
      <dc:date>2023-11-07T06:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate and stream a video file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-authenticate-and-stream-a-video-file/m-p/727692#M32189</link>
      <description>&lt;P&gt;For information on how to use the authorization process, refer to the &lt;A href="https://developers.dropbox.com/oauth-guide" target="_blank"&gt;OAuth Guide&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_blank"&gt;authorization documentation&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet" rel="noopener noreferrer" target="_blank"&gt;the official Dropbox API v2 .NET SDK&lt;/A&gt; from C#, you do not need to implement all of the code for this process yourself. The SDK will do most of the work for you. You can find &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/tree/main/dropbox-sdk-dotnet/Examples" rel="noopener noreferrer" target="_blank"&gt;examples of using this here&lt;/A&gt;. For instance, you can find an example of getting and using a refresh token in &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/main/dropbox-sdk-dotnet/Examples/OauthBasic/Program.cs" rel="noopener noreferrer" target="_blank"&gt;the OauthBasic example&lt;/A&gt; (non-PKCE, meant for server-side apps) as well as in &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/main/dropbox-sdk-dotnet/Examples/OAuthPKCE/Program.cs" rel="noopener noreferrer" target="_blank"&gt;the OAuthPKCE example&lt;/A&gt; (PKCE, meant for client-side apps).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the Dropbox .NET SDK, you have a few options for accessing file data, such as for a video file. For example, you can call &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/gh-pages/obj/api/Dropbox.Api.Files.Routes.FilesUserRoutes.html#Dropbox_Api_Files_Routes_FilesUserRoutes_DownloadAsync_System_String_System_String_" target="_blank"&gt;DownloadAsync&lt;/A&gt; to &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/gh-pages/obj/api/Dropbox.Api.Stone.IDownloadResponse-1.html#Dropbox_Api_Stone_IDownloadResponse_1_GetContentAsStreamAsync" target="_blank"&gt;get the file data as a Stream&lt;/A&gt;. Or, you can call &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/gh-pages/obj/api/Dropbox.Api.Files.Routes.FilesUserRoutes.html#Dropbox_Api_Files_Routes_FilesUserRoutes_GetTemporaryLinkAsync_Dropbox_Api_Files_GetTemporaryLinkArg_" target="_blank"&gt;GetTemporaryLinkAsync&lt;/A&gt; to get a link to the file data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case you don't use the Dropbox .NET SDK, those are &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_blank"&gt;/2/files/download&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link" target="_blank"&gt;/2/files/get_temporary_link&lt;/A&gt; respectively on the API itself.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 15:01:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-authenticate-and-stream-a-video-file/m-p/727692#M32189</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-11-07T15:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate and stream a video file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-authenticate-and-stream-a-video-file/m-p/727803#M32194</link>
      <description>&lt;P&gt;Thanks you very much, Greg!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I follow-up question with some testing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;curl -X POST https://api.dropboxapi.com/2/file_requests/list_v2 --header "Authorization: Bearer &amp;lt;bearer_token&amp;gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;" --data "{\"limit\":1000}" --header "Dropbox-API-Select-User &amp;lt;user_token&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Upon trying a simple curl command in terminal to make sure that I get a valid response (list of files) from dropbox server, I get this response:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;curl: (52) Empty reply from server&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the files in the folder and token are not expired as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what could be wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 21:15:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-authenticate-and-stream-a-video-file/m-p/727803#M32194</guid>
      <dc:creator>chakmangoo</dc:creator>
      <dc:date>2023-11-07T21:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate and stream a video file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-authenticate-and-stream-a-video-file/m-p/727812#M32195</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1764082"&gt;@chakmangoo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;I have the files in the folder and token are not expired as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what could be wrong?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1764082"&gt;@chakmangoo&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I believe you about your files and probably there is nothing wrong with them. When you list them you will get back correct list, I believe too. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;In meantime, what do you see &lt;A title="File requests" href="https://www.dropbox.com/requests" target="_blank" rel="noopener"&gt;here&lt;/A&gt;? 🧐 Does it match to the result you got above? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; If not, try play with that what you see there and post the details.&lt;/P&gt;&lt;P&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@D88F213CAFB196B6AB70612B08AD9D31/emoticons/1f601.png" alt=":beaming_face_with_smiling_eyes:" title=":beaming_face_with_smiling_eyes:" /&gt;Hope this clarifies matter. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: When you post some example (either command line or code snippet), post a complete example letting reproduction of the possible issue and only mask private info (codes, tokens, etc.). Your command line end is missing above, so it's not clear why you got that result (likely something mistyped, like separators). There is some more wrong thing (in addition to wrong endpoint selection). Try to prototype endpoints calls &lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#file_requests_list" target="_blank" rel="noopener"&gt;here&lt;/A&gt; and &lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. Good luck.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 22:35:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-authenticate-and-stream-a-video-file/m-p/727812#M32195</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-11-07T22:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate and stream a video file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-authenticate-and-stream-a-video-file/m-p/727836#M32197</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This was a life saver!! Thanks &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@13532C4C3505179FBF012F1C117AE2EB/emoticons/1f604.png" alt=":grinning_face_with_smiling_eyes:" title=":grinning_face_with_smiling_eyes:" /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Try to prototype endpoints calls&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#file_requests_list" target="_blank" rel="noopener nofollow noreferrer"&gt;here&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder" target="_blank" rel="noopener nofollow noreferrer"&gt;here&lt;/A&gt;&lt;SPAN&gt;."&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 00:17:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-authenticate-and-stream-a-video-file/m-p/727836#M32197</guid>
      <dc:creator>chakmangoo</dc:creator>
      <dc:date>2023-11-08T00:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate and stream a video file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-authenticate-and-stream-a-video-file/m-p/727982#M32206</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1764082"&gt;@chakmangoo&lt;/a&gt; To clarify, the &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#file_requests-list" target="_blank"&gt;/2/file_requests/list_v2&lt;/A&gt; is for listing "&lt;A href="https://help.dropbox.com/share/create-file-request" target="_blank"&gt;file requests&lt;/A&gt;", not actual files. If you want to list the actual files in a folder, you should use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;/2/files/list_folder&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_blank"&gt;/2/files/list_folder/continue&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any case, you shouldn't be receiving an "Empty reply from server" error; that may indicate an issue with your network connection. If you're still seeing that, please share the full code/steps to reproduce the issue, and the full output. It may be useful to use the "-v" flag on curl to get verbose output. Be sure to redact your access token though.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 15:27:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-authenticate-and-stream-a-video-file/m-p/727982#M32206</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-11-08T15:27:16Z</dc:date>
    </item>
  </channel>
</rss>

