Dropbox API:HTTP状态400 {“错误”:“ v1_retired”}

时间:2018-08-14 23:22:29

标签: php dropbox dropbox-api

我正在尝试使用他们的API将文件上传到Dropbox。我已经按照完整的教程进行了学习,但是似乎无法弄清楚。

执行它时,我遇到以下错误消息以及HTTP 400 - Bad Request

{"error": "v1_retired"}

我的composer.json文件如下: Composer.json

1 个答案:

答案 0 :(得分:0)

您收到该错误消息是因为Dropbox API的版本1不再可用,如您所使用的库的GitHub存储库中所述。您正在使用的教程可能已过时。

https://github.com/dropbox/dropbox-sdk-php

library(tidyverse)

df1 <- df %>%
  mutate(important = case_when(str_detect(Text, "title one") ~ TRUE,
                               str_detect(Text, "title two") ~ FALSE))
df1 
#> # A tibble: 11 x 3
#>    Text              File        important
#>    <chr>             <chr>       <lgl>    
#>  1 title one         Text file 1 TRUE     
#>  2 sentence one      Text file 1 NA       
#>  3 sentence two      Text file 1 NA       
#>  4 title two         Text file 1 FALSE    
#>  5 unimportant words Text file 1 NA       
#>  6 title one         Text file 2 TRUE     
#>  7 sentence one      Text file 2 NA       
#>  8 sentence two      Text file 2 NA       
#>  9 sentence three    Text file 2 NA       
#> 10 title two         Text file 2 FALSE    
#> 11 unimportant words Text file 2 NA

自述文件建议您使用任何提供的社区库,这些库可以在this page上找到。