dropbox-api

Android: using Dropbox API to know if there are changes in my Dropbox

瘦欲@ 提交于 2019-12-12 05:19:19
问题 I'm trying to know if there are changes in my Dropbox. Basically this is my strategy (I'm using https://www.dropbox.com/developers-v1/core ): calling delta/last_cursor to get a cursor calling long_poll_data with this cursor as parameter /// I use RESTUtility and i've tried to adapt this code : http://www.programcreek.com/java-api-examples/index.php?api=com.dropbox.client2.RESTUtility /// example : 8 for last_cursor /// example : 13 for longpoll_delta /// https://www.dropbox.com/developers-v1

Dropbox Android CoreApi trying to upload a file and get "Source not found'

ぃ、小莉子 提交于 2019-12-12 05:03:46
问题 Im trying to upload file to the dropbox using Android core Api as following: as described in Link private DropboxAPI<AndroidAuthSession> mDBApi; // And later in some initialization function: AppKeyPair appKeys = new AppKeyPair(APP_KEY, APP_SECRET); AndroidAuthSession session = new AndroidAuthSession(appKeys, ACCESS_TYPE); mDBApi = new DropboxAPI<AndroidAuthSession>(session); // MyActivity below should be your activity class name mDBApi.getSession().startOAuth2Authentication(MyActivity.this);

How to load images using metadata from the DropBox API

风流意气都作罢 提交于 2019-12-12 04:43:25
问题 I am getting just getting started with the DropBox API. Using POSTMAN, I have successfully retrieved an access token and have been able to list the metadata for files in my dropbox. I am trying to figure out how to use that metadata to load images on a web page using javascript. Is there an http call to generate a valid url to be used as the src parameter for an image or video element? 回答1: I think you're looking for the /media endpoint: https://www.dropbox.com/developers/core/docs#media. It

Dropbox OAuth 2 dynamic return URL

做~自己de王妃 提交于 2019-12-12 04:34:40
问题 The Dropbox OAuth 2 requires me to set a return URL. Is it possible to implement the OAuth 2 flow with a dynamic return URL? Background on why I need the return_url to be dynamic: The flow works great if the integration is through a website, however I am working on a product which is managed through a web console, and typically users will access it using the private IP on the unit. This IP is something I cannot know in advance. Possible Solutions if dynamic return URLs aren't possible: I host

c# Dropbox RestSharp download file to stream

北战南征 提交于 2019-12-12 04:19:27
问题 I have an 'ASP.NET' console application and I use 'RestSharp' client for Dropbox. I use this code to download a file : var baseUrl = "https://content.dropboxapi.com"; var client = new RestClient(baseUrl); client.Authenticator = OAuth1Authenticator.ForRequestToken(mc_apiKey, mc_appsecret); RestRequest request = new RestRequest(string.Format("/{0}/files/auto", mc_version), Method.GET); client.Authenticator = OAuth1Authenticator.ForProtectedResource(mc_apiKey, mc_appsecret, accessToken.Token,

Dropbox API v2 files_list_folder

吃可爱长大的小学妹 提交于 2019-12-12 03:48:00
问题 Looking at the list_folder sandbox at dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder I find no way to just return just the folders - basically where ".tag" = "folder" - I get all folders and files in one huge hunk the have to parse out the "folders" There is no way to easily parse the nested folders into some logical way so I can display a list with the sub folders indented in a display. such as Parent ID's would be helpful to match up children & parent folders no sorting

Upload file to Dropbox programmatically from Android APP

你离开我真会死。 提交于 2019-12-12 03:42:53
问题 This question was migrated from Android Enthusiasts Stack Exchange because it can be answered on Stack Overflow. Migrated 6 years ago . I have an App that downloads MP3 files but I'd like to provide an option to the user to upload the file to dropbox on download completion. I've looked through the API couldn't see how to do it. Is that possible at all? 回答1: Yes, you can use either the Core SDK: https://www.dropbox.com/static/developers/dropbox-android-sdk-1.5.4-docs/com/dropbox/client2

Android - Dropbox: Check for differences

这一生的挚爱 提交于 2019-12-12 02:16:07
问题 Is it possible to check for differences between local and Dropbox? Hello. I am currently working on a simple gallery App which displays all Dropbox images. The workflow so far: I log into Dropbox. The App scans recursively through all Dropbox folders and checks for images, then takes the metadata and displays the images. Now I want to know if it is possible to check for differences so the App does not need to run through all folders every time but only if something has changed (for example if

DropboxUnlinkedException - if you have not set an access token pair on the session, or if the user has revoked access

僤鯓⒐⒋嵵緔 提交于 2019-12-12 01:53:14
问题 I am trying to upload a file to dropbox. I have configured manifest file, and written the below code. Please help me understand what I am missing here. Activity onClick Intent uploadToDropbox = new Intent(this, SUploadDB2Dropbox.class); startService(uploadToDropbox) ; Service SUploadDB2Dropbox private DropboxAPI<AndroidAuthSession> mDBApi; @Override public int onStartCommand(Intent intent, int flags, int startId) { AppKeyPair appKeys = new AppKeyPair(God.DROPBOX_APP_KEY, God.DROPBOX_APP

Using DropBox in MVC 4

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 01:44:20
问题 I have a requirement in my MVC4 App where i need to upload some files on dropbox. Please suggest me any Api which is good and have some good code samples. I have tried the API http://cgeers.com/2012/03/17/dropbox-rest-api-part-6-oauth-callback/[^]; but it is giving some error. There are many samples but they are for Asp.Net. Please suggest the approach i can follow and some good APIs to integrate DropBox in MVC 4 App. EDIT: The requirement is like I have a page with an option to login to