DBSession* dbSession =
[[[DBSession alloc]
initWithAppKey:@"rskuwkeyazkgagm"
appSecret:@"w2bd6qayqmvxzzx"
root:kDBRootAppFolder] // either kDBRootAppFolder or kDBRootDropbox
autorelease];
[DBSession setSharedSession:dbSession];
[[DBSession sharedSession] unlinkAll];
[[DBSession sharedSession]updateAccessToken:@"0e2m6o0z06wpmgb" accessTokenSecret:@"eir8pfpikpzty2w" forUserId:@""];
DBRestClient *restClient = [[DBRestClient alloc] initWithSession:[DBSession sharedSession]];
restClient.delegate = self;
NSString *pathString = @"/2012-12-27-0-180941A.mp4";
[[[DBSession alloc]
initWithAppKey:@"rskuwkeyazkgagm"
appSecret:@"w2bd6qayqmvxzzx"
root:kDBRootAppFolder] // either kDBRootAppFolder or kDBRootDropbox
autorelease];
[DBSession setSharedSession:dbSession];
[[DBSession sharedSession] unlinkAll];
[[DBSession sharedSession]updateAccessToken:@"0e2m6o0z06wpmgb" accessTokenSecret:@"eir8pfpikpzty2w" forUserId:@""];
DBRestClient *restClient = [[DBRestClient alloc] initWithSession:[DBSession sharedSession]];
restClient.delegate = self;
NSString *pathString = @"/2012-12-27-0-180941A.mp4";
[restClient loadFile:pathString intoPath:@"/Users/liuchan_xin/Desktop/2012-12-27-0-180941A.mp4"];
“双语播放器”已在app store上架,欢迎大家前去下载(主要用于看电影,学英语,程序员一定要学好英语!)
这里是链接:
https://itunes.apple.com/cn/app/shuang-yu-bo-fang-qi-kan-dian/id950279764?mt=8