mirie / drupal---sailthru-api-client Goto Github PK
View Code? Open in Web Editor NEWProvides a very basic wrapper to the Sailthru PHP Client library
Home Page: https://drupal.org/project/sailthru_client
Provides a very basic wrapper to the Sailthru PHP Client library
Home Page: https://drupal.org/project/sailthru_client
SAILTHRU CLIENT MODULE FOR DRUPAL 6.x Description ----------- This module provides a very basic wrapper to the Sailthru PHP Client library provided by Sailthru. Sailthru provide email delivery services that can be accessed by their API. This module is a time saver for developers wanting to integrate Sailthru with their module. Features -------- * Administration page for configuring Sailthru API Key and Secret. * A single function that creates and returns a Sailthru_Client object for calling the Sailthru API TODO ---- * Check Sailthru connectivity on status page Download -------- This module is also available for download on Drupal.org: http://drupal.org/project/sailthru_client Installation ------------ This guide assumes you are installing the module in sites/all/modules/ - if not, please adjust accordingly IMPORTANT: This module requires version 1.05 of the Sailthru PHP Library (or possibly higher). * Extract this module to your sites/all/modules/ folder * Download the Sailthru PHP5 Library from https://github.com/sailthru/sailthru-php5-client/zipball/v1.05 * Extract the contents of sailthru-sailthru-php5-client-2342da3/ to sites/all/modules/sailthru_client/lib/ * Ensure the file sites/all/modules/sailthru_client/lib/sailthru/Sailthru_Client.php exists * Install the module by visiting http://{yoursitedomain}/admin/build/modules - look for "Sailthu API Client" * Visit http://{yoursitedomain}/admin/settings/sailthru-client and configure your Key and Secret Example ------- To use this module, you simply need to call: <?php $sailthru = sailthru_client_get_client(true); // If you would prefer not to revel your PHP version when calling the API use sailthru_client_get_client(false); if($sailthru == false) { // There has been an error - check your watchdog log } else { // You can now call the functions Sailthru_Client provides, e.g. $result = $sailthru->send('TEMPLATE_NAME', '[email protected], array('variable1' => 'value1', 'variable2' => 'value2', ), array( 'reply_to' => '[email protected], ) ); if(isset($result['error'])) { // Check the error values, you can use http://docs.sailthru.com/api/errors for reference } } ?> Thanks ------ This module was sponsored by New Zealand Post and built by Catalyst IT Ltd.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.