Mapping Active Campaigns and Variation Group IDs to their Names
The following code is written in PHP and assumes that the client knows only the Site ID.
- The client goes to the discovery page and retrieves the Campaigns collection resource through the “campaigns” link relation and “active-running” name.
- The client retrieves all the Campaigns, loops through each Campaign to retrieve all the Variation Groups for each Campaign through the “variationgroups” link relation, and prints ID and names to the screen.
<?php |