Forum Discussion
A-Gon350
Nov 27, 2022Copper Contributor
Download files from sharepoint onedrive
I’m trying to write a c# app that will download files from sharepoint onedrive using the rest sharepoint API Does anyone know how this can be done?
A-Gon350
Dec 19, 2022Copper Contributor
im getting this error. do you by any chance know why? i cant seem to find any information on it
SvenSieverding
Dec 20, 2022Bronze Contributor
A-Gon350
Mhm.... try to convert the password into a securestring
var securePassword = new SecureString();
foreach (char c in userPassword)
{
securePassword.AppendChar(c);
}
AuthenticationManager auth = new AuthenticationManager(userLogin, securePassword);