<?php

//Let's get cracking. Include the Swim API lib. This is known as LucidGecko.
require_once 'LucidGecko/LucidGecko.php';
//Include a config file with our api details.
require_once 'config.php';
//Create an instance of the API Lib. This is like this with getInstance because the class is implemented as a singleton.
$lucidGecko = LucidGecko::getInstance(PLUGIN_KEY, PLUGIN_SECRET);
$lucidGecko->friendlyErrors = true;
$lucidGecko->outputCalls = true;
//Information for the logged in user.
$lucidGecko->requestWebhook(3032, 'IToDo', array('CompanyKey' => '0c69eeb6-ada1-f154-659b-88da526fe3e2', 'AssignedTo' => '1402', 'Type' => 'text', 'Text' => 'hello', 'Link' => 'http://google.com/'));
?>
<swm:hasinterface interface="IToDo">
	<swm:interfaceapps interface="IToDo" type="radio" /> 
</swm:hasinterface>
Example #2
0
 /**
  * Returns instance of the LucidGecko object. This class uses a singleton pattern.
  */
 public static function getInstance($appKey = null, $appSecret = null, $installID = null, $installSecret = null, $apiServer = null)
 {
     if (self::$_instance === null) {
         self::$_instance = new self($appKey, $appSecret, $installID, $installSecret, $apiServer);
     }
     return self::$_instance;
 }