Category and Subcategory

Can I get a list of Constituents that are inside a specific Category or Subcategory:
https://api.sky.blackbaud.com/constituent/v1/constituents
https://api.sky.blackbaud.com/constituent/v1/memberships

Ultimately, we have a few categories, and a few subcategories.. like “Active” and "Lapsed" I want to return a full list of those members, but also get their information like email, first name, last name etc… Whats the most efficient way to do that?

Comments

  • So I ended up getting the entire members list, looping thru using the next_link ; then filtering that with server side code, it would be a lot less taxing on SkyAPI if there was a way to filter this. What I have works fine for me for now, so long as the connection is stable.

  • Andrew Durocher:

    So I ended up getting the entire members list, looping thru using the next_link ; then filtering that with server side code, it would be a lot less taxing on SkyAPI if there was a way to filter this. What I have works fine for me for now, so long as the connection is stable.

    1. Make a call to:
      /constituent/v1/memberships (asking for all members on record)
      - Because I cant filter “Active”
    2. Run the next_link all the way through the 10,000 members list and filter out ≠ Active
    3. Make an individual call to each constituent ID to get their profile information.

Categories