dropbox-api

File Uploads via Dropbox Api V2

前提是你 提交于 2019-12-02 00:07:17
问题 Previously I was using the Dropbox API V1 within my web app to upload files my dropbox account. Please note that the app uses only one dropbox account (mine) to upload files. So Previously: I created an app on the dropbox developers console Generated my token from the developers console Hard coded that token into my server to upload all file to a specific folder within my Dropbox. This worked perfectly before but as the dropbox API v1 has been deprecated it does not work anymore. Dropbox V1

Get Metadata from Dropbox Link Without Auth

自作多情 提交于 2019-12-01 23:36:12
I want to check for a version changed/get metadata of a text-file with a shared link on dropbox. I will not be using dropbox api as it makes users use their own accounts. I want them to link to my account and I cannot do that manually since I might change my password later. so: no auth token, just get metadata from shared link of dropbox so that I can check for version changes and if the version has changed download the contents of the new file. also: I'm open to other suggestions to make this work as well. Please explain in a little detail your solution. Updated E-Tag Issue: public void

File Uploads via Dropbox Api V2

让人想犯罪 __ 提交于 2019-12-01 20:50:05
Previously I was using the Dropbox API V1 within my web app to upload files my dropbox account. Please note that the app uses only one dropbox account (mine) to upload files. So Previously: I created an app on the dropbox developers console Generated my token from the developers console Hard coded that token into my server to upload all file to a specific folder within my Dropbox. This worked perfectly before but as the dropbox API v1 has been deprecated it does not work anymore. Dropbox V1 Code: function fileupload(content) { request.put('https://api-content.dropbox.com/1/files_put/auto/my

Laravel 5: redirect to an external link outside of localhost/server

醉酒当歌 提交于 2019-12-01 14:59:27
I want to build an app with laravel 5 & dropbox API in which I want the API allow/cancel-warning to be displayed when you land on the homepage, not when you click a button. I tried different methods but I couldn`t make it work. public function start(){ session(['user_id'=>1]); $dKey = 'key'; $dSecret = 'secret'; $appName = 'app'; $appInfo = new Dropbox\AppInfo($dKey,$dSecret); //store csrf token $tokenStore = new Dropbox\ArrayEntryStore($_SESSION,'dropbox-auth-csrf-token'); //define auth details $this->webAuth = new Dropbox\WebAuth($appInfo,$appName,'http://localhost:8000/dropbox/finish',

How to make a CURL call to Dropbox API using Meteor.js

▼魔方 西西 提交于 2019-12-01 04:38:48
I am new to Meteor.js and want to make my web app work with Dropbox Core API. I am not able to wrap my head around making API calls using the HTTP package in Meteor.js How can I make a call in Meteor which is similar to the Curl call below : curl https://api.dropbox.com/1/account/info -H "Authorization: Bearer <access token>" I wish to get list of files in the directory but for now I am stuck with the Authentical Token. You can use the HTTP package you mentioned Add it with meteor add http Then to use it (server side). This should produce exactly what the curl request above gives out. var

How to make a CURL call to Dropbox API using Meteor.js

回眸只為那壹抹淺笑 提交于 2019-12-01 01:58:51
问题 I am new to Meteor.js and want to make my web app work with Dropbox Core API. I am not able to wrap my head around making API calls using the HTTP package in Meteor.js How can I make a call in Meteor which is similar to the Curl call below : curl https://api.dropbox.com/1/account/info -H "Authorization: Bearer <access token>" I wish to get list of files in the directory but for now I am stuck with the Authentical Token. 回答1: You can use the HTTP package you mentioned Add it with meteor add

You should have a com.dropbox.client2.android.AuthActivity with the scheme:XXXXXXXX

半腔热情 提交于 2019-12-01 01:13:35
I am trying to upload a text file to my Dropbox, but it shows an error in manifest. This is my Manifest file and the logcat error , what am I doing wrong can anyone help me please... <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.ondropbox" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"><

File uploading Dropbox v2.0 API

狂风中的少年 提交于 2019-12-01 01:03:05
I'm using the new Dropbox SDK v2 for .NET. I'm trying to upload a document to a Dropbox account. public async Task UploadDoc() { using (var dbx = new DropboxClient("XXXXXXXXXX")) { var full = await dbx.Users.GetCurrentAccountAsync(); await Upload(dbx, @"/MyApp/test", "test.txt","Testing!"); } } async Task Upload(DropboxClient dbx, string folder, string file, string content) { using (var mem = new MemoryStream(Encoding.UTF8.GetBytes(content))) { var updated = await dbx.Files.UploadAsync( folder + "/" + file, WriteMode.Overwrite.Instance, body: mem); Console.WriteLine("Saved {0}/{1} rev {2}",

Sending notifications from Mac to iPhone/ iPad/ iPod touch

偶尔善良 提交于 2019-11-30 23:19:29
I currently sell a Mac-only productivity tool that uses visual and audio notifications to remind the user of certain events taking place. I've started planning the iPhone and iPad versions of that Mac program and would like to be able to provide notification services from the Mac to the iPhone, e.g. instead of the Mac playing an audio cue, the iPhone could vibrate, etc. I have so far done very little iPhone development and I'm not really sure how the various push notification services work. Is this easy enough to do? or is a "challenge". A few more potentially relevant pieces of information:

Using saved Dropbox authentication details on Android

折月煮酒 提交于 2019-11-30 22:03:42
In the Getting started article on Dropbox website they have a tutorial how to use Core API with Android to get started. When the application launches for the first time, the user is asked to authenticate the software to use the users Dropbox account. After the authentication is successfully finished, you'll receive a pair of authentication strings, the key and a secret. After the user has authenticated the application to use his or her Dropbox account I save the key and the secred using Android's SharedPreferences. How do I use these saved values? I don't mean how I retrieve them using