Does anyone try to get a google play or whatever google api by oauth2client.client? Some, I wrote the next bits of code:
import httplib2
import requests
from oauth2client.client import flow_from_clientsecrets
flow = flow_from_clientsecrets('path_to_dir\\client_secret.json',
scope = 'https://www.googleapis.com/auth/androidpublisher',
redirect_uri='')
auth_uri = flow.step1_get_authorize_url()
credentials = flow.step2_exchange(code)
http = httplib2.Http()
http = credentials.authorize(http)
I wonder how to get code parametr? The error is:
NameError: name 'code' is not defined
and how to call any method of the choosed api?