Overview
This guide is a quick reference that lists the steps for accessing the customer information of the currently logged in user. In USTA parlance, this is 'Bound' access. In this mode, the customer UAID is bound to the session under which the user has logged in to USTA.com. The token will restrict access to only data for this one UAID.
Integrating your application with USTA.com is easy. You can use any programming language or tool that supports HTTPS communications.
Me Construct
When working in Bound mode, 'me' represents the only customer to which you will have access to data. In other words, data that is about me ie the logged in user.
Before Development
Before you begin development of your browser-based application, contact USTA to discuss what data you will need to access from USTA. Credentials will be issued for use to connect via HTTP.
...
This is the API call. Janrain only has two environments. Please note the difference in base urls:
Test: https://usta-dev.us-dev.janraincapture.com
Prod: https://usta-prod.us.janraincapture.com
Data/Payload
You must use the client_id and currentPassword assigned by USTA. The signInEmailAddress is your unique user identity at Janrain.
...
Key | Value |
---|---|
client_id | <YOUR ASSIGNED JANRAIN CLIENT ID> |
currentPassword | <YOUR JANRAIN PASSWORD> |
signInEmailAddress | <YOUR UNIQUE EMAIL ADDRESS> |
flow | standard |
flow_version | 20161114171439489756 |
redirect_uri | http://localhost |
response_type | token |
form | signInForm |
locale | en-US |
...
This API call uses Basic Authorization. Use the supplied client_id and secret to generate a Basic Authentication token. There are many online generators you can use for testing. One is here.
Key | Value |
---|---|
authorization | 'Basic [SUPPLY YOUR GENERATED BASIC AUTHENTICATION TOKEN]' |
...
This is the API call. Please note the difference in base urls:
Test: https://stage-services.usta.com
Prod: https://services.usta.com
Result
The important info returned from this call are the following:
...
For instance, you can retrieve your Customer Profile information using the following API call: https://stage-services/v1/customer/me
Headers
Key | Value |
---|---|
Content-Type | application/json |
authorization | 'Bearer ZTc2ZGQxZWItZjVjMC00MDFiLWFjYTktZWYxZGRlNTcyYzg4OkhOOUU2U2ovdmtWUWEyR2pKYUxBSDF4WndWTzN0dHZWQmJRQnpRaVlpbWc1RWFvVVJ5bUVhTzc4SVRtNVh5NjQzSUo0UThTcHpTNXQ2c2Jz' |
...