ibm_watson.authorization_v1 module

The v1 Authorization “service” that enables developers to retrieve a temporary access token

class AuthorizationV1(url='https://stream.watsonplatform.net/authorization/api', username=None, password=None, use_vcap_services=True)[source]

Bases: ibm_cloud_sdk_core.base_service.BaseService

Generates tokens, which can be used client-side to avoid exposing the service credentials. Tokens are valid for 1 hour and are sent using the X-Watson-Authorization-Token header.

default_url = 'https://stream.watsonplatform.net/authorization/api'
get_token(url)[source]

Retrieves a temporary access token