Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
There are other API endpoints that Purdue.io exposes that require authentication. These APIs are typically used for operations that require a Purdue Career Account (adding/dropping CRNs, fetching user schedule, etc). Due to the nature of these APIs, be aware that they are largely untested and that the Purdue.io team and contributors are not responsible for any consequences of their use.
How to authenticate
Authenticated endpoints require a valid Purdue Career Account to use. In order to provide credentials when using these APIs, simply add a Basic
Authorization header. For example:
Authorization: Basic cHVyZHVlcGV0ZTpib2lsZXJtYWtlcjE=
cHVyZHVlcGV0ZTpib2lsZXJtYWtlcjE= is a base64 encoded username/password pair in the form of
username:password, in this case
Always use https when using authenticated endpoints, as to avoid transmitting credentials in plaintext across the network.
Purdue.io does not store the credentials you send for authenticated endpoints - the credentials are only used to authenticate to MyPurdue via https. The Purdue.io team and contributors are not responsible for any consequences of making use of authenticated endpoints.
This endpoint is used to retrieve up-to-date information on a particular CRN (usually used to get the latest seat count or waitlist).
termCode is the MyPurdue code for the term of the CRN you are querying for. E.g.
201710 for Fall 2016.
crn is the CRN number.