Skip to content

Database query: "Unauthorized" #3

@teodoro51m

Description

@teodoro51m

While the
var release = await client.GetReleaseAsync("2817604");
gives the correct result, the
var query = new SearchQuery();
query.Query = "Lovage";
query.Type = SearchItemType.Release;
var searchResults = await client.Search(accessToken.Key, accessToken.Secret, query);
gives
ErrorMessage: "You must authenticate to access this resource."
StatusCode: "Unauthorized"
I guess this is due to the fact that I don't know what to put in the useragent variable.
On the contrary, the query,
https://api.discogs.com/database/search?q=Lovage&key=my_consumerkey&secret=my_consumersecret
issued from a browser, works perfectly.
Please help. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions