GET ACCESS TOKEN PHP
Here is a link to get your PHP access token
The file will require the following lines to be updated:
$pfxPath = “[PATH TO .pfx CERTIFICATE FILE]”;
$pfxPassword = “[CERTIFICATE PASSWORD]”;
This can then be followed by copying the token to the command:
$token = @”
eyJ0e…
“@
followed by:
curl.exe -i “https://po10-api-aec3azeqdmb4etfq.uksouth-01.azurewebsites.net/api/performance/?eventCode=60HW&urn=2699242&lastNameValidator=Johnson-Thompson” -H “Authorization: Bearer $token”
or
curl.exe -i “https://po10-api-aec3azeqdmb4etfq.uksouth-01.azurewebsites.net/api/performance/?eventCode=60HW&firstName=Katarina&lastName=Johnson-Thompson&dateOfBirth=1993-01-09” -H “Authorization: Bearer $token”
GET BEST PERFORMANCES PHP
A complete PHP script to obtain the access token and call the API is available here
GET ACCESS TOKEN C#
Here is a link to get your C# access token
The file will require the following lines to be updated:
string certificatePath = @”[PATH TO .pfx CERTIFICATE FILE]”;
string certificatePassword = “[CERTIFICATE PASSWORD]”;
GET BEST PERFORMANCES C#
A complete C# script to obtain the access token and call the API is available here
GET ACCESS TOKEN PYTHON
Here is a link to get your Python access token
The file will require the following lines to be updated:
pfx_path = r”[PATH TO .pfx CERTIFICATE FILE]”
pfx_password = b”[CERTIFICATE PASSWORD]”
GET BEST PERFORMANCES PYTHON
A complete Python script to obtain the access token and call the API is available here