Hello Sir, i am not able to get access token…i got authorization code but not able to get access token …
please help me to get it
from google.auth.transport.requests import Request
from google.oauth2.credentials import Credentials
from google_auth_oauthlib.flow import InstalledAppFlow
from googleapiclient.discovery import build
from googleapiclient.errors import HttpError
SCOPES = ['https://www.googleapis.com/auth/blogger',
'https://www.googleapis.com/auth/blogger.readonly']
def main():
flow = InstalledAppFlow.from_client_secrets_file(
'client_secret.json', SCOPES)
credentials = flow.run_console(
authorization_prompt_message='Authorize the app using:\\n{url}',
authorization_code_message='Enter the authorization code: ')
print (credentials)
main()