dropbox-api

Getting Request Token From Dropbox OAuth “Invalid OAuth Request”

╄→尐↘猪︶ㄣ 提交于 2020-01-17 08:22:47
问题 I'm trying to get a response data from dropbox oauth as described here Now i dont know why it keeps saying {"error": "Invalid OAuth request."} Here is a my complete code for requesting token: -(void)requestTokenSecret { NSString* oauthVersion=@"1"; NSString* oauth_signature_method=@"PLAINTEXT"; NSString* postHeader = [NSString stringWithFormat: @"Authorization: OAuth oauth_version=\"%@\", oauth_signature_method=\"%@\", oauth_consumer_key=\"%@\", oauth_signature=\"%@&\"",oauthVersion,oauth

HTTPError finishing the OAuth2 flow with Dropbox SDK v 3.42 for Python

僤鯓⒐⒋嵵緔 提交于 2020-01-16 13:18:06
问题 In SDK version 3.41 there was a bug that prevented the finish method of DropboxOAuth2FlowNoRedirect to actually finish. I asked about this here yesterday. After I updated to version 3.42, I get a new error. I once again took the code from the Dropbox-documentation and changed it to the following to get a traceback and to be able to execute it outside of a function: # added traceback-import from traceback import format_exc from dropbox import DropboxOAuth2FlowNoRedirect # replaced real key and

HTTPError finishing the OAuth2 flow with Dropbox SDK v 3.42 for Python

老子叫甜甜 提交于 2020-01-16 13:17:15
问题 In SDK version 3.41 there was a bug that prevented the finish method of DropboxOAuth2FlowNoRedirect to actually finish. I asked about this here yesterday. After I updated to version 3.42, I get a new error. I once again took the code from the Dropbox-documentation and changed it to the following to get a traceback and to be able to execute it outside of a function: # added traceback-import from traceback import format_exc from dropbox import DropboxOAuth2FlowNoRedirect # replaced real key and

Dropbox oauth window is not working

£可爱£侵袭症+ 提交于 2020-01-14 13:16:28
问题 I'm porting my application to Electron and I was surprised to find out that the Dropbox authentication doesn't work in this environment. It does work in Chrome though. The sign-in buttons remain disabled and the labels appear over the inputs. The following message is displayed in the console: The Content-Security-Policy directive 'worker-src' is implemented behind a flag which is currently disabled. I'm testing using dropbox@2.5.7, electron@1.7.7 on OS X. I found a similar question, but it

Download file from dropbox to the server

二次信任 提交于 2020-01-14 04:56:06
问题 I want to download the files from dropbox and need to keep it in my server on behalf of dropbox user. I tried with curl and file_get_contents. But could not succeed. Should I need to use any api method of dropbox ? I could able to download the file from browser but I need to keep it in server. My application is a kind of file sharing. 回答1: The Dropbox browser client is developed to be used by the Registered Users only, where user needs to sign-in and then he can access files there. But as you

Dropbox file unique identifier - RESTful API

笑着哭i 提交于 2020-01-13 08:00:22
问题 Is there any unique identifier associated with a Dropbox file that doesn't change with revisions/changes/renaming, that can be accessed via the RESTful API? I want to store it in the database and keep track of some operations on the file. 回答1: Unfortunately, no, the Dropbox API does not currently expose any sort of file ID or hash like this. Edit: The Dropbox API v2 does now offer file IDs that persist across moves/renames. You can find more information under "Path formats" in the

Dropbox API and PHP

自作多情 提交于 2020-01-13 06:47:28
问题 I am gelling following error while trying to read file content which is residing in a subfolder rather than a parent folder. Fatal error: Uncaught exception 'Exception' with message 'Invalid signature. Expected signature base string: GET&https%3A%2F%2Fapi-content.dropbox.com%2F1%2Ffiles%2Fdropbox%2FProjects%2FMAC%2520Error.rtf&oauth_consumer_key%3Dbdagb07uu6zq827%26oauth_nonce%3D46d063d5815a0972d63cf72359c0349f%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1324449973%26oauth_token

How to play streaming video using Dropbox API?

家住魔仙堡 提交于 2020-01-13 06:38:40
问题 Now I develope application that play video streaming. My video fild uploaded at dropbox and using Dropbox Core API and media method. Media method , Core API What I made code is this. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); AndroidAuthSession session = buildSession(); mDBApi = new DropboxAPI<AndroidAuthSession>(session); checkAppKeySetup(); btn_con=(Button)findViewById(R.id.con_btn); btn_con

ShinyApp - Dropbox authentication with rdrop2

三世轮回 提交于 2020-01-13 06:02:10
问题 I stored files on my dropbox and I am accessing them through rdrop2 on a shinyapp hosted at shinyapps.io. The following code works great on my laptop but aborts when I deploy my app on shinyapp.io and freezes an opaque screen. Any clues on why and how to troubleshoot? Thanks a bunch! - stephane Here is the code I am using (from https://github.com/karthik/rdrop2): token<-drop_auth() saveRDS(token, "droptoken.rds") token <- readRDS("droptoken.rds") ZIPFile<-drop_read_csv(as.character(ZIPCode)

Missing CSRF token in session

泪湿孤枕 提交于 2020-01-07 05:49:05
问题 I am creating the application which can fetch the files and folder from the dropbox and will show in the web page.I have the below code. $appInfo=new Dropbox\AppInfo($dropboxKey,$dropboxSecret); //store CSRF token $csrfTokenStore = new Dropbox\ArrayEntryStore($_SESSION,'dropbox-auth-csrf-token'); $webAuth = new Dropbox\WebAuth($appInfo,$appName,'path',$csrfTokenStore); when i execute the code i got the below error: Fatal error: Uncaught exception 'Dropbox\WebAuthException_BadState' with