I wouldn't think it would add anything to the target url. Probably something I am doing but I can't see it. Here is the code I am testing with. I pretty much took it from Postman with some updates to work with the new version of RestSharp. Any suggestions would be appreciated. The code (sCode) I pass into the routine comes from eBay after the user authorizes issuing a user token. This routine should return the user token and a refresh token.
Async Sub RSGetCode(sCode As String)
Dim client As RestClient = New RestClient("
https://api.sandbox.ebay.com/identity/v1/oauth2/token")
Dim request As RestRequest = New RestRequest(Method.Post)
sCode = WebUtility.UrlDecode(sCode)
With request
.AddHeader("Content-Type", "application/x-www-form-urlencoded")
.AddHeader("Authorization", "Basic TXVycGh5c0MtNzYxNy00ZGRmLTk5N2ItOD..........................")
.AddParameter("grant_type", "authorization_code")
.AddParameter("code", sCode)
.AddParameter("redirect_uri", "Murphys_Creativ-Mu...........")
.AddParameter("Scope", "
https://api.ebay.com/oauth/api_scope/sell.inventory")
End With
Dim responce = Await client.PostAsync(request)
'Dim responce = Await client.ExecuteAsync(request)
Dim sR As String = responce.Content
End Sub