Share .NET > Tutorial > List folders - OneDrive

The following example shows you how to list subfolders in a OneDrive folder.

To access OneDrive for Business with the API you have to set site url as https://<domain><username>
If our Office 365 domain is "independentsoft" and username is "" than OneDrive site url will be:

*You have to replace "@" and "." from your username with "_"

C# example
VB example

Need help? Ask our developers: