google-api-python-client icon indicating copy to clipboard operation
google-api-python-client copied to clipboard

Error while trying to access Chrome Web Store API

Open dkaraj opened this issue 2 years ago • 1 comments

from google.oauth2.service_account import ServiceAccountCredentials
from googleapiclient.discovery import build

CLIENT_SECRET_FILE = 'client_secret.json'
SCOPES = ['https://www.googleapis.com/auth/chromewebstore']

credentials = ServiceAccountCredentials.from_json_keyfile_name(CLIENT_SECRET_FILE, SCOPES)

webstore_service = build('chromewebstore', 'v1.1', credentials=credentials)

I'm trying to connect to chromewebstore api, but looks like it didnt found it. As well I tried to set directly developerKey, as well to set static_discovery=False but same error.

raise UnknownApiNameOrVersion("name: %s  version: %s" % (serviceName, version))
googleapiclient.errors.UnknownApiNameOrVersion: name: chromewebstore  version: v1.1

dkaraj avatar Apr 05 '23 09:04 dkaraj

Googlers see b/143879215

parthea avatar Apr 18 '23 15:04 parthea