Integrate Dropbox into your ios app, but without a login

I want to integrate Dropbox into my application. I made one example using a Dropbox document and sample code.

But the problem is that I do not want to open a popup. So is there any way that I can use dropbox without logging in or some where I can set a default password for logging in and logging in automatically. so that I can use dropbox directly.

Thank,

Hardik Shah

0
source share
2 answers

, Dropbox, URL- . . , . , , .

0

API DropBox Core . .

NSString *surl = @"https://api.dropbox.com/1/metadata/dropbox/";

NSURL *url = [[NSURL alloc] initWithString:surl];
NSMutableURLRequest *req = [[NSMutableURLRequest alloc] initWithURL:url];

[req setValue:[self getAuth] forHTTPHeaderField:@"Authorization"];

NSURLSessionConfiguration *config = [NSURLSessionConfiguration ephemeralSessionConfiguration];
[config setHTTPAdditionalHeaders:@{@"Authorization": @"Bearer xxxxxxxxxxxxxxxxxxxx"}];  // replace xs with you access token

NSURLConnection *conn = [[NSURLConnection alloc]initWithRequest:req delegate:self];

, NSURLConnectionDelegate

Dropbox

0

All Articles