Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example: https://worldtennisnumber.com/eng/player-profile?id=6127768d9a88a03bfb1ac01d


Sample Curl

You must first retrieve an access token using Bound or Unbound method. See Cognito Client Integration Guide for more on how to request a token.

The following is a sample curl to retrieve a player profile.

Where:

--header 'Authorization: Bearer eyJraW...

specifies the token that you retrieved using the https://stage-account.usta.com/oauth2/tokenendpoint.

Code Block
curl --location --request POST 'https://services.usta.com/v1/dataexchange/profile/search?limit=1' \
--header 'Authorization: Bearer eyJraW...
--header 'Content-Type: application/json' \
--data-raw '{
   "selection":{
      "uaid":"20068747490"
   },
   "output":{
      "ratings":true,
      "wtn":true
   }
}'