Get an OAuth Access Token

get

/bcws/webresources/v1.0/authentication/queryAccessToken

Gets the OAuth access token to use when authenticating Billing Care requests.

Request

There are no request parameters for this operation.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

Default Response

default response
Back to Top

Examples

This example shows how to get an OAuth access token by submitting a GET request on the REST resource using cURL. For more information about cURL, see "Use cURL".

cURL Command

curl -i
    -H "Authorization: Basic client_id:client_secret"
    -H "Content-Type: application/json"
    -H "Accept: application/json"
    -X GET 'http://hostname:port/bcws/webresources/version/authentication/queryAccessToken'

where:

  • client_id:client_secret are the Base64-encoded credentials for your REST client.

  • hostname:port is the IP address or host name and port of the Billing Care REST API server.

  • version is the version of the API you're using, such as v1.0.

Example of Response Body

This example shows the contents of the response body in JSON format.
{"access_token":generatedTokenValue,
"token_type":"Bearer",
"expires_in":3600,
"scope":"providedResourceServer.providedScopeName"}
Back to Top