cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

Dropbox API Support & Feedback

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

How to correctly edit the TestData.m file?

Explorer | Level 4

Good afternoon. I'm trying to use your test application with my personal data (I edit the TestData.m file in the application). How to properly edit it and what personal information do I need to enter to access my folder?

 

Снимок экрана 2017-08-26 в 13.24.55.png

1 Accepted Solution

Accepted Solutions
Highlighted

Re: How to correctly edit the TestData.m file?

Dropboxer
Dropboxer

That test project included with the Dropbox API v2 Objective-C SDK is really only necessary if you're planning on making changes to the SDK itself, which most developers don't need to do. If you don't need to make changes to the SDK, we recommend just installing the SDK using one of the supported installation methods.

 

If you are planning on modifying the SDK though, there is some more information about the tests included, and what kinds of apps they correspond to, in ViewController.m

 

The account IDs would be the IDs for accounts returned by the API, e.g., from getCurrentAccount. The email would be the email address registered to the account.

 

The OAuth 1 access token would be from API v1, which supported both OAuth 2 and OAuth 1, as opposed to API v2 which only supports OAuth 2. API v2 allows you to migrate OAuth 1 access tokens to OAuth 2 though.

 

The different app key pairs would be from registering different kinds of Dropbox API apps. Note that Dropbox Business API apps (that is, the "team" apps) can only be used by Dropbox Business accounts.

View solution in original post

1 Reply 1
Highlighted

Re: How to correctly edit the TestData.m file?

Dropboxer
Dropboxer

That test project included with the Dropbox API v2 Objective-C SDK is really only necessary if you're planning on making changes to the SDK itself, which most developers don't need to do. If you don't need to make changes to the SDK, we recommend just installing the SDK using one of the supported installation methods.

 

If you are planning on modifying the SDK though, there is some more information about the tests included, and what kinds of apps they correspond to, in ViewController.m

 

The account IDs would be the IDs for accounts returned by the API, e.g., from getCurrentAccount. The email would be the email address registered to the account.

 

The OAuth 1 access token would be from API v1, which supported both OAuth 2 and OAuth 1, as opposed to API v2 which only supports OAuth 2. API v2 allows you to migrate OAuth 1 access tokens to OAuth 2 though.

 

The different app key pairs would be from registering different kinds of Dropbox API apps. Note that Dropbox Business API apps (that is, the "team" apps) can only be used by Dropbox Business accounts.

View solution in original post

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Polls
Have you been keeping up good habits while working from home?
We've created a working from home cheat sheet to help keep up on those habits, check it out here.
Need more support?