Create Classy records for testing in bulk
- Set start and end date for the campaign
- Create a set number of teams
- Create a random number of pages per team up to the defined maximum
- Create a random number of donations per page up to the defined maximum, each with a random amount.
- This can't set created_at dates for fundraisers and teams because those cannot be manipulated through the Classy API. However it does set started_at and ended_at for the fundraising pages, and purchased_at for offline donations.
Create a .env
file with the following:
CLIENT_ID=
CLIENT_SECRET=
EMAIL_PREFIX=test
[email protected]
The email prefix and suffix are used to generate individual email addresses such as [email protected]
Tweak data.json by setting your org and target campaign ID, and adjusting other parameters.