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

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -