PowerBI Data Connections with OpenApply Public API
Prerequisites: Authentication
$ClientID = "xxx"
$ClientSecret = "yyy"
# Combine Client ID and Client Secret, then Base64 encode them
$AuthHeader = [System.Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes("${ClientID}:${ClientSecret}"))
# Make the request to get the access token
$Response = Invoke-RestMethod -Uri "https://api.openapply.com/oauth/token" `
-Method Post `
-Headers @{Authorization = "Basic $AuthHeader"} `
-Body "grant_type=client_credentials" `
-ContentType "application/x-www-form-urlencoded"
# Display the access token in the console
Write-Output "Access Token: $($Response.access_token)"
# Optionally, save the access token to a text file
$Response.access_token | Out-File -FilePath "access_token.txt" -Encoding utf8Direct Web Connection








M-code in Power Query

Python Scripts
Last updated
Was this helpful?


