I get the problem since I received the code, and now I want an access token in exchange for the code, but as Googleβs clean documentation for exchanging the code for the token, you need to send parameters
- Authorization code returned from the initial request
- client_id Client_id received during application registration
- client_secret Client secret obtained during application registration
- redirect_uri URI registered in the application
grant_type As defined in the OAuth 2.0 specification, this field must contain the value of authorization_code and
var parameters = new OAuth2Parameters { code = ClientId = "", ClientSecret = "", RedirectUri = "", Scope = "https://www.google.com/m8/feeds", grant_type =, }; OAuthUtil.GetAccessToken(parameters);
I am generating the parameters, but the OAuth2Parameters parameters do not contain a definition of the grant type and an error sending the google server request. Can someone help me with code to exchange code for access token and how to replace it? This is a link that says in what form the google URL should be created https://developers.google.com/accounts/docs/OAuth2WebServer#formingtheurl so kindly help me and if I go to the URL with the parameter type grant, it will send an error message
Failed to load file or assembly "Newtonsoft.Json, Version = 4.0.5.0, Culture = neutral, PublicKeyToken = 30ad4fe6b2a6aeed" or one of its dependencies. The located assembly manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
source share