Url for oneDrive download file not accepting AccessToken

I am trying to make a download url for oneDrive REST API

NSString *downloadUrl = [NSString stringWithFormat:@"https://apis.live.net/v5.0/%@/content?suppress_redirects=true?access_token=%@",
                                 [file objectForKey:@"id"],
                                 [ApiManager sharedInstance].liveClient.session.accessToken

Here is my code, however its giving me error that access token is not found. If i remove suppress redirects it works and generates a url to download. However i want to skip this redirect url.

The query is explained in here


How can i fix this issue?


Change the second ? to an & and it should work. I'd also suggest taking a look at the new API (http://dev.onedrive.com) as it's more likely to get new features going forward.

Need Your Help

Which example of code is considered better (in terms of readability and support) and why?

refactoring readability code-readability

Method to get data uses lazy-load pattern, so it's safe to call it multiple times.

How would I create this program?

vb.net visual-studio-2010 basic

I have to write a loop that would produce to make 4 unique numbers. So it would be like 4- 2 - 5 - 7 and it can't be like 4 - 4 - 5- 7 because the 4's aren't unique. It's just I struggle with loop I