<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Venkatesh Vellingiri on Medium]]></title>
        <description><![CDATA[Stories by Venkatesh Vellingiri on Medium]]></description>
        <link>https://medium.com/@venkatbloom888?source=rss-6ea48dc24a1b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*rLvCpMK9uT1wGOfL</url>
            <title>Stories by Venkatesh Vellingiri on Medium</title>
            <link>https://medium.com/@venkatbloom888?source=rss-6ea48dc24a1b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 03:13:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@venkatbloom888/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Dropbox Exordium]]></title>
            <link>https://medium.com/@venkatbloom888/dropbox-exordium-1b1458de1b6?source=rss-6ea48dc24a1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b1458de1b6</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[dropbox]]></category>
            <dc:creator><![CDATA[Venkatesh Vellingiri]]></dc:creator>
            <pubDate>Sun, 07 Jun 2020 16:46:33 GMT</pubDate>
            <atom:updated>2020-06-07T16:46:33.544Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi Readers,</p><p>The idea about this blog is to cover the basic steps which we have to follow, to integrate Dropbox with our existing web application. You should have a minimal understanding about access_token and webhooks.</p><p>Recently I have started to do integration for my web application. The one which <strong>I integrated first was Dropbox.</strong></p><p>Requirements are:<br> 1. Fetch the Dropbox files.<br> 2. Get the corresponding redirect link.<br> 3. Get the shared users of a file</p><p>To integrate Dropbox into our Application.<br> 1. Create a Dropbox box app using the Dropbox developers site.<br> 2. Use the Client Id and Client Secret of the app for authentication purpose.</p><p><strong>How to authenticate a user ?</strong></p><p>The authentication process can be done in two ways:<br> 1. By creating a separate login for Dropbox.<br> 2. By triggering the redirect link on click of a button.</p><p><strong>Note:</strong> The API URL should be encoded with Client Id obtained.</p><p><strong>For Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ONVUUsLqQvyZbeE54WZF4Q.png" /></figure><p><strong>Redirect URI: </strong>The URL to hardcode to get the authentication credentials.</p><p>After successful authentication, the authentication credentials can be obtained in the redirect_uri.</p><p>Oh Wait !!. We are not close to getting the files yet.</p><p>Use the authentication code, to get the access_token for a user. Hit the following API endpoint with the authentication code.</p><p><strong>Endpoint:</strong> <a href="https://api.dropboxapi.com/oauth2/token">https://api.dropboxapi.com/oauth2/token</a></p><p><strong>Sample code:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0lGcT-GfWHwQn1fWEd7JMw.png" /></figure><p>I have used request_promise npm to get the results. The redirect_uri should be the same as the redirect uri provided during the authentication process.</p><p><strong>Things to remember:<br> </strong>1. Redirect uri should be the same.<br> 2. The Dropbox Client Id and Client Secret should be entered.</p><p>Hooray !!. We completed the process.</p><p><strong>Good News, the Dropbox access token will never expire.</strong></p><p>The access token can be removed by only revoking.</p><p><strong>How to drag the files from Dropbox to our App ?</strong></p><p>The files can be obtained by hitting the following API.<br><strong>Endpoint: </strong><a href="https://api.dropboxapi.com/2/files/list_folder.">https://api.dropboxapi.com/2/files/list_folder.</a></p><p>Use the above sample code by modifying the url.</p><p>The API returns the folders and files in a one way tree (At a time a single page file is returned). Nested files and folders can be obtained by setting the recursive field to true in the API hit.</p><p><strong>Webhooks:</strong></p><p>The Webhook can be configured in the Dropbox app which we created. Specify the corresponding webhooks URL. For authentication the app will verify the url by hitting with a challenge parameter. The app should be responded back with the challenge parameter.</p><p>Once the authentication is done, the webhooks hits the URL whenever the user of our app drops some files in their Dropbox.</p><p>The Dropbox also provides an API Explorer where the developers can view the live functioning of the API Endpoints<br><a href="https://dropbox.github.io/dropbox-api-v2-explorer/">https://dropbox.github.io/dropbox-api-v2-explorer/</a></p><p>To know more about Dropbox integration visit this link: <a href="https://www.dropbox.com/developers">https://www.dropbox.com/developers</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b1458de1b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>