IBM Cloud - ключи API IAM выдают ошибку, он выглядит так же, как эталонный API, и другие форматы также вызывают ошибку - PullRequest
0 голосов
/ 08 мая 2020

Код:

"authenticator = IAMAuthenticator('API here')
discovery = DiscoveryV1(
    version='2019-04-30',
    authenticator=authenticator
)
"

Ошибка:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-34-be8d6641d00e> in <module>
      1 discovery = DiscoveryV1(
      2     version='2019-04-30',
----> 3     authenticator=authenticator
      4 )
TypeError: __init__() got an unexpected keyword argument 'authenticator'

Чем он отличается от?

https://cloud.ibm.com/apidocs/discovery?code=python

...