OneDrive API help in getting download link of file -


i need download url of file using onedrive api.

this works string url = "https://apis.live.net/v5.0/" + file_id + "/shared_read_link?access_token=" + auth_token

but doesn't string url = "https://apis.live.net/v5.0/" + file_id + "/content?suppress_redirects=true?access_token=" + auth_token;

its throwing error, unauthorized.. can tell why?

thanks sujit

& should have been used in place of ?. correct answer is

string url = "https://apis.live.net/v5.0/" + file_id + "/content?suppress_redirects=true&access_token=" + auth_token;


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -