Purpose:

A guided walk-through for setting up a service account for Zywave APIs through the use of refresh tokens and offline access

Background:

Zywave API V2.x is focused on accessing APIs on behalf of a user. In scenarios where it is desired to use the APIs without the direct involvement of a user a service account can be created to make API calls on behalf of.

Walk-through:

Initial setup:

Making API calls with a refresh token

curl --request POST \
  --url https://auth.zywave.com/connect/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data client_id=[YOUR_CLIENT_ID] \
  --data client_secret=[YOUR_CLIENT_SECRET] \
  --data grant_type=refresh_token \
  --data refresh_token=[YOUR_REFRESH_TOKEN]