This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[//lasso | |
library('mailchimp.lasso'); | |
// create a new mailchimp instance | |
// NOTE: -verifypeer worked fine for me on Linux, but not Windows | |
var('mc') = mailchimp( -key='{YOUR_MAILCHIMP_API_KEY}', -version=3.0, -verifypeer=false); | |
// get all campaigns | |
$mc->get('/campaigns'); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[//lasso | |
define_tag( | |
'json', | |
-namespace='_page_encode_', | |
-req='value', | |
-opt='options', | |
-description='Updated version of [encode_json] with speed improvements by James Harvard.', | |
-encodenone | |
); | |
local( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[//lasso | |
/* | |
[Image] type for Lasso 8.x | |
This is a drop-in replacement for the native [Image] type in Lasso 8.x. This version requires | |
[OS_Process] and calls the ImageMagick command line utilities rather than relying on the | |
low-level libraries. Doing so eliminates the need to install an older version of ImageMagick and | |
its dependencies on the server for compatibility. It is recommended that the ImageMagick module | |
be removed from LassoModules when using this replacement to avoid startup errors. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Include this at the top of every page, e.g., [library('config.inc')]. --- | |
[//lasso | |
// include required tags | |
// (these could also be loaded via LassoStartup) | |
library('tags/dictionary.inc'); // http://tagswap.net/dictionary | |
library('tags/paypal_nvpapi.inc'); | |
// create a new paypal object to work with | |
var('pp') = paypal_nvpapi( | |
-pwd='your-api-password', |