I am running the following code that was taken line for line from this google cloud sdk example.
import httplib2
from googleapiclient import discovery
from oauth2client.client import OAuth2Credentials as creds
crm = discovery.build(
'cloudresourcemanager', 'v3', http=creds.authorize(httplib2.Http()))
operation = crm.projects().create(
body={
'project_id': 'test-project',
}).execute()
I am getting the following error.
Traceback (most recent call last):
File "/Users/myUsername/src/Chess/gcp/gcp_init.py", line 5, in <module>
'cloudresourcemanager', 'v3', http=creds.authorize(httplib2.Http()))
TypeError: authorize() missing 1 required positional argument: 'http'