Client ID and OAuth token do not math

I have a problem with requesting info, using id and oauth from the app settings but getting a 401 error “Client ID and OAuth token do not math”. What am I doing wrong any thoughts? And here’s a code.

using (var hc = new HttpClient(clientHandler, false))
                   hc.DefaultRequestHeaders.Add("Client-ID", "clientid");
                   hc.DefaultRequestHeaders.Add("Authorization", "Bearer oauthtoken");
                   var message = await hc.GetAsync("");

The Client-ID is not the Client-ID for that oauth token.

You can get the right clientID for your token from the validate endpoint

Oh well so I was doing everythig wrong from the beginning? Thanks for help!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.