function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Unable to get the authorization code from the google

Hi All,, 

I am trying to get the authorization token from the salesforce for the google drive access. But I am getting the bad response error(400 ) for the access. I am not able to decipher the reason in the code.

String messageBody='';

  messageBody ='client_id='+''+
   System.debug('messagebody'+messageBody );

/* if(tokenType=='ALL')
   messageBody = messageBody +
   '&code='+<Fetch Authorization Code from Key Safe>+
   '&redirect_uri='+<Fetch Redirect URI from EndPoint>+

  else if(tokenType=='ACCESS_TOKEN')
   messageBody = messageBody +
   '&refresh_token='+<Fetch Refresh Token from Key Safe>+

Please somebody help in this regard
Eli Flores, SFDC DevEli Flores, SFDC Dev
Assuming you already have have token, you are missing the code parameter.

Eli Flores, SFDC DevEli Flores, SFDC Dev
err i mean assuming you alraedy have the authorization code, you are missing the code parameter