flysystem-dropbox icon indicating copy to clipboard operation
flysystem-dropbox copied to clipboard

Dependancy issue: Dropbox v1 API

Open drewm opened this issue 8 years ago • 17 comments

This is mostly a heads-up so we can start thinking about a solution.

This adapter depends on the official Dropbox PHP SDK for v1 of the API. In June 2016 that API was deprecated in favour of the new v2 Dropbox API. v1 will be disabled end of June 2017.

Dropbox is not intending to update or replace the PHP SDK, so there's no immediately obvious upgrade path.

This adapter will stop working June 2017 unless a replacement interface with the Dropbox API is found or created.

drewm avatar Jun 30 '16 08:06 drewm

is there any solution for Dropbox v2 API ?

cihankusmez avatar Jul 12 '16 10:07 cihankusmez

@cihankusmez not really :(

frankdejonge avatar Jul 12 '16 10:07 frankdejonge

kunalvarma05/dropbox-php-sdk looks like possible option for a replacement backend. If I get a chance (not sure when) I'll take a look to see what's involved in porting to it.

drewm avatar Jul 12 '16 10:07 drewm

+1 I just received an email confirming that v1 will be deprecated soon.

coreation avatar Aug 20 '16 08:08 coreation

@frankdejonge do you have a plan to support v2

cihankusmez avatar Aug 20 '16 11:08 cihankusmez

@cihankusmez I would want to support an official SDK, I don't plan to maintain a Dropbox SDK.

frankdejonge avatar Aug 20 '16 14:08 frankdejonge

@frankdejonge seem that there is no an official PHP SDK for Dropbox API v2 right now.

The answer is that we don't currently have plans for an official PHP SDK for Dropbox API v2.

answered on June 30, 2016 04:15

ref: https://www.dropboxforum.com/hc/en-us/community/posts/207429906-PHP-SDK-for-API-v2

minkbear avatar Aug 22 '16 06:08 minkbear

Edit: @minkbear The link to their (Dropbox) libraries also states they'll be working on one, although no roadmap has been announced. Since they've pretty much got a year still (?) We can either use that unofficial one they linked in that thread or wait it out ...

coreation avatar Aug 22 '16 07:08 coreation

possible v2 candidate: https://github.com/Alorel/dropbox-v2-php

basz avatar Nov 17 '16 14:11 basz

@frankdejonge Now that we're just a few months shy of v1 retiring, what are your thoughts on using one of the community SDKs?

curtisblackwell avatar Feb 20 '17 15:02 curtisblackwell

I would like to know the same thing.

schonhose avatar Feb 26 '17 17:02 schonhose

@cihankusmez I think this is a great opportunity for the community to step in. A PR for a link and a docs entry can be submitted for more exposure.

frankdejonge avatar Feb 26 '17 22:02 frankdejonge

i'm willing to help test anything that comes along

basz avatar Feb 26 '17 22:02 basz

Hello, I have forked this repo and I am writing the adapter for dropbox v2 API at v2 Adapter using one of the community SDK's from Unofficial Dropbox SDK

Hemant-Mann avatar Mar 12 '17 17:03 Hemant-Mann

Hey @frankdejonge I know that the adapter functions return array or boolean but I can not find in the documentation what keys should be returned on a successful array response, some of the keys that i found from reading the v1 code

  • type
  • timestamp
  • path
  • size
  • mimetype

Hemant-Mann avatar Mar 16 '17 13:03 Hemant-Mann

@Hemant-Mann the description can be found here: http://flysystem.thephpleague.com/creating-an-adapter/

frankdejonge avatar Mar 16 '17 13:03 frankdejonge

We've created a flysystem adapter that uses v2 of the Dropbox API: https://github.com/spatie/flysystem-dropbox

It's fully functional, a stable release has been tagged.

freekmurze avatar Apr 19 '17 11:04 freekmurze