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 TopResponse
Supported Media Types
- application/xml
- application/json
Default Response
default response
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"}