PHP code example of wizjo / freshmail
1. Go to this page and download the library: Download wizjo/freshmail library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wizjo / freshmail example snippets
$fm = new \Wizjo\FreshMail(API_KEY, API_SECRET);
//get request
$action = $fm->request('/ping');
$data = $action->getData();
echo $data['data']; //will print "pong"
//post request
$action = $fm->request('/ping', ['test' => 'data']);
$data = $action->getData();
echo $data['data']['test']; //will print "data"