Dropbox integration in ionic 3


#1

Hello,
I would like to use the Dropbox APIs in my ionic application.
In index.html, between the tags I added:

<script src="https://unpkg.com/dropbox/dist/Dropbox-sdk.min.js"></script>

In the provider, I have to do

import { Dropbox } from ' ........'

Does anyone know the syntax of this import ?

After doing this import, I could create the variable allowing me to access dropbox APIs:

  dbx = new Dropbox.Dropbox({accessToken: <MYACCESTOKEN>});

Thanks for your help.
YC


#2

See: https://www.joshmorony.com/integrating-ionic-2-with-the-dropbox-api-part-1/


#3

Thank you for your reply.

This is the tutorial I was talking about. I think it’s a bit old, and that’s the cause of the problem.
By cons I saw that we can install the Dropbox sdk with npm. The solution is explained here

https://www.npmjs.com/package/dropbox