Class

SimpleOsduClient

(abstract) SimpleOsduClient(api_url, access_token)

Class that provides a simple BYOT (Bring your own token) implementation for OSDU API clients.

  • Utilizes the provided access token but does not attempt to safeguard against token expiration
Constructor

# abstract new SimpleOsduClient(api_url, access_token)

Parameters:
Name Type Description
api_url string

The url for the OSDU API, with or without a trailing /

access_token string

The OSDU access token (obtained via OAuth) with which to authenticate all requests

View Source client/simple.js, line 11

Methods

# updateAccessToken(access_token)

Mechanism for updating the access token used to authenticate all OSDU API requests

Parameters:
Name Type Description
access_token string

The OSDU access token (obtained via OAuth) with which to authenticate all requests

View Source client/simple.js, line 37