Group Abstract Group Abstract

Message Boards Message Boards

1
|
9.5K Views
|
8 Replies
|
7 Total Likes
View groups...
Share
Share this post:

Dropbox API version change and ServiceConnect

POSTED BY: Philip Zecher
8 Replies
POSTED BY: Philip Zecher

A new Dropbox paclet has been pushed live which will resolve this issue. Basically the issue was due to Dropbox has stopped version 1 api support. More information at https://blogs.dropbox.com/developers/2017/06/updated-api-v1-deprecation-timeline/ The new paclet supports v2 apis which are new and faster.

In[3]:= PacletUpdate["ServiceConnection_Dropbox"]

Out[3]= PacletManager`Paclet[
"Name" -> "ServiceConnection_Dropbox", "Version" -> "11.2.0", 
 "MathematicaVersion" -> "11.0+", 
 "Extensions" -> {{
   "Kernel", "Root" -> "Kernel", 
    "Context" -> {"Dropbox`", " DropboxLoad`"}}, {
   "Documentation", "MainPage" -> "ReferencePages/Symbols/Dropbox", 
    "Language" -> "English"}}, 
 "Location" -> "/Users/damanjits/Library/Mathematica/Paclets/\
Repository/ServiceConnection_Dropbox-11.2.0"]

In[4]:= Quit

In[1]:= RebuildPacletData[]

In[2]:= dropbox = ServiceConnect["Dropbox"]

Out[2]= ServiceObject["Dropbox", 
 "ID" -> "connection-cce5eb7df530d3b6cb6d12ac438d97c8"]

In[4]:= dropbox["UserData"]

Out[4]= <|"ReferralLink" -> "https://db.tt/G06FmxYB", 
 "Disabled" -> False, "IsPaired" -> False, 
 "Email" -> "testwolfram1@gmail.com", 
 "AccountID" -> "dbid:AAALg-wp1VzCpe-BncerqAd442vQb9PkfHo", 
 "Name" -> {"FamiliarName" -> "Test", "GivenName" -> "Test", 
   "AbbreviatedName" -> "TW", "Surname" -> "Wolfram", 
   "DisplayName" -> "Test Wolfram"}, "EmailVerified" -> True, 
 "Country" -> "US", "AccountType" -> {"Tag" -> "basic"}, 
 "Locale" -> "en"|>

In[5]:= dropbox["FileNames", "Path" -> "/WolframGraphics"]

Out[5]= Dataset[ <> ]

In[7]:= dropbox[
  "DirectoryTreePlot", {"Path" -> "/", "Recursive" -> True}] // Head

Out[7]= Graphics

Notice the change in parameters of DirectoryTreePlot, "Root" parameter is no longer used in all the requests. Instead File/Directory path should start with '/'. These minor documentation tweaks will be available soon in online documentation.

POSTED BY: Damanjit Singh
Posted 8 years ago
POSTED BY: b3m2a1 ​ 

Hi Philip,

We have worked on updating our connection to Dropbox following their API update. We'll be releasing an update very soon for our users.

Let me get back to you ASAP to keep you updated.

Thanks

Thanks for the quick reply. It's amazing how rapidly this functionality became integral to a lot of notebooks.

POSTED BY: Philip Zecher

Hey Philip,

Our update have gone through QA and will soon be released (hopefully today). I'll keep you updated.

Posted 8 years ago

When is the ServiceConnect framework gonna be documented (with, of course, a disclaimer on the doc pages that everything is subject to breaking changes at any time)?

I took it apart to see how it works so I could use it for my own stuff and it's turned out to be super useful to be able to make my own service connections. I'm sure I missed thing, though and I think you'd have a happy user-base if you provided them with a tutorial on it at the minimum.

POSTED BY: b3m2a1 ​ 

We are actually working on a better framework that will allow users to create their own ServiceConnections easily so you won't have to dissect the code to create your own connections. That framework will be documented when it's released.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard