Integrate Dropbox into my website

10,888

Solution 1

Check out the Dropbox PHP SDK it uses OAuth for validation which is the safest way.

Solution 2

You're dreaming and will have to use the API. This is exactly what API's are for, for programming applications to talk to applications. Specifically on the subject of authentication, there would be so many security issues with just having a user/pass in your code it's not even funny. Things like OAuth and other API authentication methods exist to make this kind of thing safer and saner. Sort of like lighting a campfire in a firepit instead of the middle of a dry grassland.

There are libraries like the one fire mentions that can wrap the API and make it easier to access from your language, but you need to play by the rulebook here. I know it sounds daunting but your application will be the better for doing it right.

Share:
10,888
benhowdle89
Author by

benhowdle89

Consultant software engineer and advisor to companies building software products.

Updated on June 26, 2022

Comments

  • benhowdle89
    benhowdle89 almost 2 years

    I've done some googling around on this topic, but there seems to be only one option: the Dropbox official API. Is there no other way i could do some sort of JSON/PHP get_file_contents etc, when you get tweets from twitter you can use the user_timeline, is there no alternative for Dropbox people have come across. I just want something i can put a username and password into the PHP script and have it get the files (or am i dreaming and will have to use the API)