Hello I am a software developer at Boston Healthcare for the Homeless Program.
We have recently switched to Financial Edge, and I have been asked to pull some data from your platform to our internal database.
The SKY API seems like a lovely way to do just that, but I am having a lot of trouble doing OAUTH2 from a script. Since I don't have a website for this and I am behind a firewall, I don't have any way to capture the token that I need to exchange for the auth token.
My understanding is that once I receive that token once, I can just keep getting the refresh token every time my script is ran by calling
https://oauth2.sky.blackbaud.com/tokenHere is what I have so far (my cron job is in PHP):
Please help!
<?php
require_once(__DIR__.'/includes/http.php');
$body = array(
'grant_type' => 'refresh_token',
'refresh_token' => '<how?>',
'client_id' => '3593d58c-429d-42fc-b36e-49162af67651',
'client_secret' => 'BIG_SECRET_I_AM_NOT_POSTING_ON_A_PUBLIC_FORUM');
$headers = array('Content-Type: application/x-www-form-urlencoded');
$result = blackbaud\\Http::post('
https://oauth2.sky.blackbaud.com/token', $body, $headers);;
print_r($result);