https://github.com/activecampaign/example-view_contact_details
View a contact's details including list subscriptions, custom field data, recent actions, and campaign history
https://github.com/activecampaign/example-view_contact_details
Last synced: over 1 year ago
JSON representation
View a contact's details including list subscriptions, custom field data, recent actions, and campaign history
- Host: GitHub
- URL: https://github.com/activecampaign/example-view_contact_details
- Owner: ActiveCampaign
- Created: 2014-03-14T15:29:40.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-11-27T16:33:22.000Z (over 11 years ago)
- Last Synced: 2025-01-05T13:11:07.693Z (over 1 year ago)
- Language: PHP
- Size: 727 KB
- Stars: 1
- Watchers: 10
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ActiveCampaign Custom API Script: View a contact's details including list subscriptions, custom field data, recent actions, and campaign history.
This script is intended to get you going with our API by providing an interface to view contact data. You are free to customize the script to your liking.
## Requirements
1. [Our PHP API library](https://github.com/ActiveCampaign/activecampaign-api-php)
2. A web server where you can run PHP code
## Installation and Usage
You can install **example-view_contact_details** by downloading (or cloning) the source.
Input your ActiveCampaign URL and API Key at the top of the script. Example below:
$api_url = "https://ACCOUNT.api-us1.com";
$api_key = "4f3c6d12f0.....00ca273778dc893";
Also make sure the path to the PHP library is correct:
require_once("../../activecampaign-api-php/includes/ActiveCampaign.class.php");
### Quick Overview
Load the URL with the contact hash as a parameter (you can obtain the hash using the `contact_view` API method):
`http://mysite.com/view_contact_details/index.php?hash=[HASH]`
## Documentation and Links
* [ActiveCampaign API documentation](http://www.activecampaign.com/api/)
## Reporting Issues
We'd love to help if you have questions or problems. Report issues using the [Github Issue Tracker](issues) or email help@activecampaign.com.