<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: OAuth 2.0 - IOS API V 2.0 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162301#M5641</link>
    <description>&lt;P&gt;Yes, you can certainly use that endpoint to get an OAuth 2 access token and then use the HTTP interface for API v2.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Nov 2015 01:51:44 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2015-11-24T01:51:44Z</dc:date>
    <item>
      <title>OAuth 2.0 - IOS API V 2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162300#M5640</link>
      <description>&lt;P&gt;Hello !&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use the the version API dropbox 1.0 for my app IOS, the new 2.0 is only swift and i&amp;nbsp;can not use it because my app use only object-c.&lt;/P&gt;
&lt;P&gt;So now i use API 1.0 for generate autentication DBSession restClient etc then use "&lt;A href="https://api.dropboxapi.com/1/oauth2/token_from_oauth1" rel="nofollow noreferrer" target="_blank"&gt;https://api.dropboxapi.com/1/oauth2/token_from_oauth1&lt;/A&gt;" for access_token and call via HTTP the new api.dropboxapi.com/2.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This method works correctly,&amp;nbsp;my question is, if this method is a good way to take advantage of the new API V2 ?&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;m.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:38:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162300#M5640</guid>
      <dc:creator>Crypto C.</dc:creator>
      <dc:date>2019-05-29T09:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth 2.0 - IOS API V 2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162301#M5641</link>
      <description>&lt;P&gt;Yes, you can certainly use that endpoint to get an OAuth 2 access token and then use the HTTP interface for API v2.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 01:51:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162301#M5641</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-11-24T01:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth 2.0 - IOS API V 2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162302#M5642</link>
      <description>&lt;P&gt;ok, thanks Gregory,&amp;nbsp;another question if possible, i have problem with parameters for API v2, for example :&lt;/P&gt;
&lt;P&gt;NSString *urlWithParams = @"&lt;A href="https://api.dropboxapi.com/2/sharing/get_shared_links" rel="nofollow noreferrer"&gt;https://api.dropboxapi.com/2/sharing/get_shared_links&lt;/A&gt;";&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; NSURL *url = [NSURL URLWithString:urlWithParams];&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:url]; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [request setHTTPMethod:@"POST"];&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [request addValue:[appDelegate apiAuthorizationHeader] forHTTPHeaderField:@"Authorization"];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; NSDictionary *parameters = @{@"path": @"};&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; NSMutableString *parameterString = [NSMutableString string];&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; for (NSString *key in [parameters allKeys]) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ([parameterString length]) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [parameterString appendString:@"&amp;amp;"];&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [parameterString appendFormat:@"%@=%@", key, parameters[key]];&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; if (parameterString) [request setHTTPBody:[parameterString dataUsingEncoding:NSUTF8StringEncoding]]; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; NSURLSessionDataTask *task = [[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:^(NSData * _Nullable data,&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;the problem is :&lt;/P&gt;
&lt;P&gt;NSDictionary *parameters = @{@"path": @"};&lt;/P&gt;
&lt;P&gt;NSMutableString *parameterString = [NSMutableString string];&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; for (NSString *key in [parameters allKeys]) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ([parameterString length]) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [parameterString appendString:@"&amp;amp;"];&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [parameterString appendFormat:@"%@=%@", key, parameters[key]];&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; if (parameterString) [request setHTTPBody:[parameterString dataUsingEncoding:NSUTF8StringEncoding]]; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;the format is incorrect ... where is the problem ??&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;m.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 04:21:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162302#M5642</guid>
      <dc:creator>Crypto C.</dc:creator>
      <dc:date>2015-11-24T04:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth 2.0 - IOS API V 2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162303#M5643</link>
      <description>&lt;P&gt;It looks like you're form encoding the parameter(s) that you send in the body, but the API actually just expects JSON:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http#documentation-sharing-get_shared_links" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/documentation/http#documentation-sharing-get_shared_links&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;For example, in this case, the data you send up should just be:&lt;/P&gt;
&lt;P&gt;"{"path": "}"&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 04:41:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162303#M5643</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-11-24T04:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth 2.0 - IOS API V 2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162304#M5644</link>
      <description>&lt;P&gt;yes, mmm please, if possible, write small example in object-c ...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have tested with :&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;NSString *urlWithParams = @"&lt;A href="https://api.dropboxapi.com/2/sharing/get_shared_links" rel="nofollow noreferrer"&gt;https://api.dropboxapi.com/2/sharing/get_shared_links&lt;/A&gt;";&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; NSURL *url = [NSURL URLWithString:urlWithParams];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:url];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [request setHTTPMethod:@"POST"];&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [request addValue:[appDelegate apiAuthorizationHeader:2] forHTTPHeaderField:@"Authorization"];&lt;/P&gt;
&lt;P&gt;NSDictionary *parameters = @{@"path" : @"};&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; NSError *error;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; NSData *postdata = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:&amp;amp;error];&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [request setHTTPBody:postdata];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; NSURLSessionDataTask *task = [[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:^(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but too error 400 ...&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 17:14:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162304#M5644</guid>
      <dc:creator>Crypto C.</dc:creator>
      <dc:date>2015-11-24T17:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth 2.0 - IOS API V 2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162305#M5645</link>
      <description>&lt;P&gt;What's the body of the error response? It should contain some more useful information.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 02:45:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162305#M5645</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-11-25T02:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth 2.0 - IOS API V 2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162306#M5646</link>
      <description>&lt;P&gt;no this is httpResponse :&lt;/P&gt;
&lt;P&gt;&amp;lt;NSHTTPURLResponse: 0x7fa7438723f0&amp;gt; { URL: &lt;A href="https://api.dropboxapi.com/2/sharing/get_shared_links" rel="nofollow noreferrer"&gt;https://api.dropboxapi.com/2/sharing/get_shared_links&lt;/A&gt; } { status code: 400, headers {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Connection = "keep-alive";&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; "Content-Type" = "text/plain; charset=utf-8";&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Date = "Tue, 24 Nov 2015 19:15:03 GMT";&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Server = nginx;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; "Transfer-Encoding" = Identity;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; "X-Dropbox-Request-Id" = 998c7ed7b7368bf59b7753ce5ae43308;&lt;/P&gt;
&lt;P&gt;} }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 03:17:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162306#M5646</guid>
      <dc:creator>Crypto C.</dc:creator>
      <dc:date>2015-11-25T03:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth 2.0 - IOS API V 2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162307#M5647</link>
      <description>&lt;P&gt;That only seems to be showing the status code and headers. What is the body of the response?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 03:18:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162307#M5647</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-11-25T03:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth 2.0 - IOS API V 2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162308#M5648</link>
      <description>&lt;P&gt;Error in call to API function "sharing/get_shared_links": Bad HTTP "Content-Type" header: "application/x-www-form-urlencoded".&amp;nbsp; Expecting one of "application/json", "application/json; charset=utf-8", "text/plain; charset=dropbox-cors-hack".&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 03:42:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162308#M5648</guid>
      <dc:creator>Crypto C.</dc:creator>
      <dc:date>2015-11-25T03:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth 2.0 - IOS API V 2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162309#M5649</link>
      <description>&lt;P&gt;That seems to be it then. The API expects a "Content-Type" header of "application/json", but your code apparently sends up "application/x-www-form-urlencoded". Change that to&amp;nbsp;"application/json" and try again.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 03:44:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162309#M5649</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-11-25T03:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth 2.0 - IOS API V 2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162310#M5650</link>
      <description>&lt;P&gt;ok,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;add :&lt;/P&gt;
&lt;P&gt;[request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];&lt;/P&gt;
&lt;P&gt;and now it's ok ....&lt;/P&gt;
&lt;P&gt;good work.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 04:19:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162310#M5650</guid>
      <dc:creator>Crypto C.</dc:creator>
      <dc:date>2015-11-25T04:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth 2.0 - IOS API V 2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162311#M5651</link>
      <description>&lt;P&gt;Hi, Could you please give some instruction how to get acessToken v2 from accessToken v1?&lt;/P&gt;
&lt;P&gt;i know this API&amp;nbsp;"&lt;A href="https://api.dropboxapi.com/1/oauth2/token_from_oauth1" rel="nofollow noreferrer"&gt;https://api.dropboxapi.com/1/oauth2/token_from_oauth1&lt;/A&gt;&amp;nbsp;but dont know how to pass the parameters.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i'm using ios sdk&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 19:15:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162311#M5651</guid>
      <dc:creator>SGS E.</dc:creator>
      <dc:date>2015-11-25T19:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth 2.0 - IOS API V 2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162312#M5652</link>
      <description>&lt;P&gt;Hi SGS E. none parameters is required, post&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;A href="https://api.dropboxapi.com/1/oauth2/token_from_oauth1" rel="nofollow noreferrer"&gt;https://api.dropboxapi.com/1/oauth2/token_from_oauth1&lt;/A&gt;" method "POST" with&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Authorization OAuth 1.0 and return access_token OAuth 2.0&lt;/P&gt;
&lt;P&gt;very easy.&lt;/P&gt;
&lt;P&gt;bye&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 22:23:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162312#M5652</guid>
      <dc:creator>Crypto C.</dc:creator>
      <dc:date>2015-11-25T22:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth 2.0 - IOS API V 2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162313#M5653</link>
      <description>&lt;P&gt;That's correct, that endpoint requires OAuth 1 signing. This blog post, specifically step 4, may be helpful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.dropbox.com/developers/2012/07/using-oauth-1-0-with-the-plaintext-signature-method/" rel="nofollow noreferrer"&gt;https://blogs.dropbox.com/developers/2012/07/using-oauth-1-0-with-the-plaintext-signature-method/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2015 01:56:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162313#M5653</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-11-26T01:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth 2.0 - IOS API V 2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162314#M5654</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm sorry but i still cant do it.&lt;/P&gt;
&lt;P&gt;Now what i have is&amp;nbsp;DBSession restClien or something like that.Is there anyway to get accesssToken v2 from resclient ?&lt;/P&gt;
&lt;P&gt;Could you please give some sample code in your project ?&lt;/P&gt;
&lt;P&gt;here is my code but it doesnt work well&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;MPOAuthCredentialConcreteStore&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;* credential = [[&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;DBSession&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;sharedSession&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;] &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;credentialStoreForUserId&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:[info &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;userId&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;]];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;AFHTTPSessionManager&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;* manager = [[&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;AFHTTPSessionManager&lt;/SPAN&gt; &lt;SPAN class="s4"&gt;alloc&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;] &lt;/SPAN&gt;&lt;SPAN class="s4"&gt;initWithBaseURL&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:[&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;NSURL&lt;/SPAN&gt; &lt;SPAN class="s4"&gt;URLWithString&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s5"&gt;BASE_URL&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;]];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;manager.&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;responseSerializer&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; = [&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;AFHTTPResponseSerializer&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;serializer&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;manager.&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;requestSerializer&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; = [&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;AFHTTPRequestSerializer&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;serializer&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;nbsp; [manager.&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;requestSerializer&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;setValue&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s6"&gt;@"OAuth"&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;forHTTPHeaderField&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s6"&gt;@"Authorization"&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;[manager.&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;requestSerializer&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;setValue&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s6"&gt;@"1.0"&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;forHTTPHeaderField&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s6"&gt;@"oauth_version"&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;[manager.&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;requestSerializer&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;setValue&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s6"&gt;@"PLAINTEXT"&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;forHTTPHeaderField&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s6"&gt;@"oauth_signature_method"&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;[manager.&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;requestSerializer&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;setValue&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s5"&gt;APP_KEY_DB&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;forHTTPHeaderField&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s6"&gt;@"oauth_consumer_key"&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;[manager.&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;requestSerializer&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;setValue&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:credential.&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;accessToken&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;forHTTPHeaderField&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s6"&gt;@"oauth_token"&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;[manager.&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;requestSerializer&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;setValue&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:[&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;NSString&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;stringWithFormat&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s6"&gt;@"%@&amp;amp;%@"&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;,credential.&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;requestTokenSecret&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;,credential.&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;accessTokenSecret&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;] &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;forHTTPHeaderField&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s6"&gt;@"oauth_signature"&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;nbsp;[manager &lt;/SPAN&gt;&lt;SPAN class="s4"&gt;POST&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;@"&lt;A href="https://api.dropboxapi.com/1/oauth2/token_from_oauth1" rel="nofollow noreferrer"&gt;https://api.dropboxapi.com/1/oauth2/token_from_oauth1&lt;/A&gt;"&lt;/SPAN&gt; &lt;SPAN class="s4"&gt;parameters&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s7"&gt;@{}&lt;/SPAN&gt; &lt;SPAN class="s4"&gt;success&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:^(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;NSURLSessionDataTask&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; *task, &lt;/SPAN&gt;&lt;SPAN class="s7"&gt;id&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; responseObject) {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s3"&gt;&amp;nbsp; &amp;nbsp;} &lt;/SPAN&gt;&lt;SPAN class="s4"&gt;failure&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;:^(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;NSURLSessionDataTask&lt;/SPAN&gt;&lt;SPAN class="s3"&gt; *task, &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;NSError&lt;/SPAN&gt;&lt;SPAN class="s3"&gt; *error) {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp;}];&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p2"&gt;//It show error&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Code=-1011 "Request failed: bad request (400)"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2015 12:19:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162314#M5654</guid>
      <dc:creator>SGS E.</dc:creator>
      <dc:date>2015-11-26T12:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth 2.0 - IOS API V 2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162315#M5655</link>
      <description>&lt;P&gt;I don't believe we have any sample code for this specifically in Objective-C unfortunately.&lt;/P&gt;
&lt;P&gt;Looking at your code, it seems you are setting all of the OAuth parameters as individual parameters, when they should just be together in the one "Authorization" header, as shown in the &lt;A href="https://blogs.dropbox.com/developers/2012/07/using-oauth-1-0-with-the-plaintext-signature-method/" target="_blank" rel="nofollow noreferrer"&gt;blog post&lt;/A&gt; I linked to.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2015 08:00:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162315#M5655</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-11-28T08:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth 2.0 - IOS API V 2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162316#M5656</link>
      <description>&lt;P&gt;yah, you are right , after change the OAuth parameters as the one it works like a charm !&lt;/P&gt;
&lt;P&gt;Thank you very much.&lt;/P&gt;
&lt;P&gt;btw,dropbox sdk is great but the ios' sdk and its document is quite out of date &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@B0F70D28791EB05FA3EA0C3BDDF08EE3/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2015 17:09:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth-2-0-IOS-API-V-2-0/m-p/162316#M5656</guid>
      <dc:creator>SGS E.</dc:creator>
      <dc:date>2015-11-30T17:09:22Z</dc:date>
    </item>
  </channel>
</rss>

