I have created a configured an oAuth client using Token Implicit Grant with a 48 hour token expiration and the following scopes...
conversations
notifications
outbound
user-basic-info
users:readonly
Every API request I attempt to make with the tokens returns an error...
ErrorContent "{\"message\":\"Invalid login credentials.\",\"code\":\"bad.credentials\",\"status\":401,\"contextId\":\"8863fd89-34b5-4bc6-a9b7-da669e0e76c7\",\"details\":[],\"errors\":[]}" dynamic {string}
I am attempting the most basic of calls, getting user info and placing a call. And no, the tokens are not expired.
-- place a call
var client = new ConversationsApi();
client.Configuration.AccessToken = _accessToken;
CreateCallRequest request = new CreateCallRequest
{
PhoneNumber = "1231231234",
Priority = 0
};
try
{
CreateCallResponse result = client.PostConversationsCalls(request);
Console.WriteLine(result.Id);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
-- get user info
var usersApi = new UsersApi();
usersApi.Configuration.AccessToken = _accessToken;
var me = await usersApi.GetUserAsync("user_name");
What am I missing?