Connecting via a web service?
Hi, all. I'm familiar with REST APIs in general, but this is my first time working with this particular set. I'm trying to set up a web service that'll query the Constituent API to see whether a particular ID is in the system--it's a pretty simple check to see if a user exists or not.
So far I've created an application with my account and asked the system admin to load it for our environment. I'd appreciate some pointers as to where to go next, though. Other APIs I've worked with in this kind of case usually have me get an OAuth token that lasts for an hour or so, and use that in subsequent calls to the API. Is that the case here?
I guess mainly what I'm looking for is a “For Dummies” version of how to get started, if anyone's got one. Thanks in advance. ?
Comments
-
Hi Tom,
Thanks for your interest in the SKY Developer ecosystem!
Sometimes people like to get started using the SKY API Console. If you prefer, you can also get an idea of how Authoirzation works in our documentation and use Postman or your preferred way to communicate with APIs.
0 -
Hi, Daniel.
Thanks for that. I've had a look, and I just wanted to confirm something--is there really no way to do headless authentication? That is, does the auth flow require someone to click a website button? If so, that's a bit of a speed bump for the web service I'm doing.
0 -
0
-
Hi Tom,
The SKY API authorization model is based on an end-user providing consent. API calls happen in the context of that consenting user so that our backend can respect that user's security permissions. So at some point, a user has to log into a website and click an “Authorize” button.
In addition to the links Daniel provided, you might want to watch a few mins of this video I recorded.
https://www.youtube.com/watch?v=Dw3vrbSPAZU
In this video, at around the 17:35 I discuss the authorization model in a bit more detail, and then at 25:10 I demonstrate a technique you can use to get an access token (and refresh token) without having to write a web service to handle initiating OAuth and the redirect upon the user's consent. The technique uses Postman (a popular/common free tool) that has built-in support for OAuth - you just plug in your registered SKY application ID/secret and a few other values and it will handle launching the browser to initiate OAuth as well as fielding the redirect after consent. You can then take the access token and refresh token values returned to Postman and paste them into your application to make API calls.
2 -
Thanks, both. I've managed to grab myself a refresh token with Postman that seems to be working okay, and now I'm interacting with the API from Python with no problems so far.
3
Categories
- All Categories
- 6 Blackbaud Community Help
- 213 bbcon®
- 1.4K Blackbaud Altru®
- 403 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 656 Blackbaud Grantmaking™
- 577 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 940 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.7K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 249 ResearchPoint™
- 119 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 241 Member Lounge (Just for Fun)
- 34 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 794 Community News
- 3K Jobs Board
- 54 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)



