The GET method of this API works the same as earlier discussed for Get List. The difference between the two is Get List retrieve information related to one list only, while Get Lists API would help you retrieve information of all the lists within your account. Here it goes.
Required Parameters to Submit Request
- API Token- Token that you have generated using generate API token. Make sure you are using the most recent one.
- End Point- End point for the Add List API would appear http://my.mumara.com/api/getLists . It represents your instance of CampaignsPlus, along with the function name you are requesting through API.
Required to Get Lists
It just require request with valid API token and end point to hit.
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://my.mumara.host/api/getLists?api_token=xxxxxxxxxxxxxxxxxx"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $output = curl_exec ($ch); print_r($output); curl_close ($ch); ?>
Unlike Get List that returns you data for the provided list_id, getLists function would retrieve information about all the lists across the account, information would comprise of List Name, Owner Name, Owner Email, Reply to Email, Bounce and such.
It can be a text based message describing the details of the error that occur.