Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Brandon T.6's avatar
Brandon T.6
New member | Level 1
10 years ago

Beginner Projects, Videos, Etc. for API

Are there any beginner projects, documents, videos, etc for someone who is just picking up the API? 

I am trying to develop with in on ASP.NET MVC and so far I'm having a real tough time. For example, retrieving the accounts files (which should be a simple process) Here's what I have so far. If anyone might be able to help or point me in a good direction for learning it, I'd greatly appreciate it!

I know this should be a simple task, but for some reason, when I debug the app, it just displays a blank screen. I'm not sure why I'm having such a tough time.

Home Controller
public DropboxClient client = new DropboxClient('MY ACCESS TOKEN');
public string Files = "";

public async Task<String> Index()
{
     var GetFiles Task = GetFiles();
     await GetFilesTask;
     return Files;
}

public async Task GetFiles()
{
     var list = await client.Files.ListFolderAsync(string.Empty);
     foreach (var item in list.Entries.Where(i => i.IsFile))
     {
          Files += item.Name;
     }
}

2 Replies

Replies have been turned off for this discussion
  • Brandon T.6's avatar
    Brandon T.6
    New member | Level 1
    10 years ago

    I should add that I don't have my app key or secret app key anywhere in the project. I'm thinking that could be the issue, however the docs don't give you an example of where to place them and reference them from. Any suggestions?

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!