saguiitay / DropboxRestAPI

Dropbox REST API client in C#
MIT License
46 stars 38 forks source link

error: DropboxRestAPI.Models.Exceptions.ServiceErrorException: v1_retired #31

Open maxdiable opened 6 years ago

maxdiable commented 6 years ago

hi, this is my code: `var options = new Options { ClientId = appKey, //App key ClientSecret = appSecret, //App secret RedirectUri = callbackUrl };

        // Initialize a new Client (without an AccessToken)
        var client = new Client(options);
        var token = await client.Core.OAuth2.TokenAsync(code);

        var rootFolder = await client.Core.Metadata.MetadataAsync("/", list: false);`

the token is ok, but if call client.Core.Metadata.MetadataAsync the web show this error:

DropboxRestAPI.Models.Exceptions.ServiceErrorException: v1_retired

any help?

br Max

dnsking commented 6 years ago

The Core API v1 which this library uses has been deprecated . Use the official API