https://github.com/reload/acdc
https://github.com/reload/acdc
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/reload/acdc
- Owner: reload
- Created: 2019-02-13T08:20:43.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2025-05-28T14:09:31.000Z (7 months ago)
- Last Synced: 2025-06-14T06:01:51.608Z (7 months ago)
- Language: PHP
- Size: 1.03 MB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# ActiveCampaign Data Cruncher
Small service that listens to webhooks from ActiveCampaign and syncs
contact and deal data to specific Google Sheets. It also updates a
custom field in AC with the average of 5 other custom fields.
## Env variable Configuration
`ACTIVECAMPAIGN_ACCOUNT`: Account number at ActiveCampaign.
`ACTIVECAMPAIGN_TOKEN`: API token for ActiveCampaign.
`GOOGLE_SERVICE_ACCOUNT`: JSON for connecting to Google sheets.
`DEAL_SHEETS`: YAML defining sheets to sync deals with. An array of
hashes, where each hash has `sheet` (sheet id), `tab` (name of tab to
import too) and optionally `localeTranslate`, a boolean indicating
whether to use danish formatting.
`CONTACT_SHEETS`: Same as `DEAL_SHEETS`, for contacts.
## Artisan commands
``` shell
./artisan ac:get:contact Get a contact from ActiveCampaign and dump to stdout
./artisan ac:get:deal Get a deal from ActiveCampaign and dump to stdout
./artisan ac:getsheet Get data from Sheets and dump to stdout
```
[](https://codecov.io/gh/reload/acdc)