I am trying to call below API using python. is there any solution for this?
GET https://cloudresourcemanager.googleapis.com/v2/folders
I am able to get projects list by using google-python-client library[GET https://cloudresourcemanager.googleapis.com/v1/projects]. Below is the sample code
credentials = service_account.Credentials.from_service_account_file(
filename='service_accounts.json',
scopes=['https://www.googleapis.com/auth/cloud-platform'])
service = discovery.build('cloudresourcemanager', 'v1', credentials=credentials)
But in google-python-client library to list folders is not there
How can I call through request library [a sample code] for this API (GET https://cloudresourcemanager.googleapis.com/v2/folders). I am getting problem in authentication of API.