This guide is written for developers using API v1. It’s meant to provide necessary resources to smoothly transition to API v2 and is intended for use in conjunction with the API V2 Documentation.
Please note that while a majority of core Classy components are available in V2, certain methods, such as aggregates, are in active development.
See the Deprecation Schedule for details and timelines.
| V1.0 Endpoint (https://classy.org/api1) |
V2.0 Endpoint (https://api.classy.org/2.0) |
Description |
|---|---|---|
|
|
Returns Organization info for the Organization resource that matches the provided URL parameters. |
|
|
Returns Organization Activity for the matched Organization resource. |
|
|
Returns Donation Matching Plans for the matched Campaign resource. |
|
|
Returns a collection of Campaigns belonging to the matched Organization resource. |
|
|
Return an individual Campaign Resource. |
|
|
Returns Campaigns belonging to the matched Organization resource. |
|
|
Returns a collection of Fundraising Pages belonging to the Campaign resource. |
|
|
Returns an individual Fundraising Page resource. |
|
|
Returns a collection of Fundraising Teams belonging to the matched Campaign resource. |
|
|
Returns an individual Fundraising Team resource. |
|
|
Endpoint in development. |
|
|
Returns a collection of Transactions made to the matched Organization resource. |
|
|
Returns a collection of Transactions made to the matched Campaign resource. |
|
|
Returns a collection of Recurring Donation Plans belonging to the matched Organization resource. |
|
|
Returns a collection of Recurring Donation Plans belonging to the matched Campaign resource. |
|
|
Returns an individual Designation (formerly known as a 'Project') resource. |
|
|
Returns a collection of Ticket Types belonging to the matched Campaign resource. |
The following examples demonstrate how to use Version 2 of the Classy API to replicate the behavior of Version 1. All code snippets are written in Python. For a detailed explanation of each resource, please see the API Reference document.
Classy API Version 2.0 uses the OAuth2 protocol for authentication against the API.
The API currently supports password and client_credentials grant types. For the examples
in this guide, you will need to use the password grant type to generate a member token.
Fetch a token using a client_credentials grant type:
Use the member token to make an API request:
Fetching my member info - Returns the member record associated with this account:
Fetching a Member's Organizations:
Fetch an Organization record:
Fetch Organization account activity:
Fetch a collection of Campaigns associated with an Organization:
Fetch an individual Campaign resource:
Fetch a collection of Ticket Types for a given Campaign:
Fetch Donation Matching Plans (Sponsor Matching) associated with a Campaign:
Fetch Fundraising Pages associated with a Campaign:
Fetch an individual Fundraising Page Resource:
Fetch a collection of Fundraising Teams:
Fetch an individual Fundraising Page resource:
Fetch a collection of Transactions to a given Organization:
Fetch a collection of Transactions to a given Campaign:
Fetch an individual Transaction
Fetch a collection of Recurring Donation Plans for an Organization:
Fetch a collection of Recurring Donation Plans for a Campaign:
Fetch an individual Recurring Donation Plan:
Fetch a collection of Designations for a given Organization:
Fetch a an individual Designation:
Fetch a collection of Ticket Types for a given Campaign: