/**
  * This resets the singleton instance to null
  * @static
  * @access public
  * @return void
  **/
 public static function resetInstance()
 {
     // Reset the instance
     self::$oInstance = null;
 }
<?php

ini_set('display_errors', true);
ini_set('error_reporting', E_ALL);
// Load the OutMarket library
require_once 'lib/OutMarketApi.php';
// Give the API your information
OutMarketApi::getInstance()->setConfig(array('appId' => '', 'apiPassword' => '', 'apiUsername' => '', 'companyId' => 123, 'profileId' => 123));
// Store the singleton
$oOutMarket = OutMarketApi::getInstance();
// Try to make the call(s)
try {
    //  are examples on how to call the  OutMarket PHP API class
    // Grab all contacts
    var_dump($oOutMarket->getContacts());
    // Grab a contact
    var_dump($oOutMarket->getContact(42094396));
    // Create a contact
    var_dump($oOutMarket->addContact('*****@*****.**', null, null, 'Joe', 'Shmoe', null, '123 Somewhere Ln', 'Apt 12', 'Somewhere', 'NW', '12345', '123-456-7890', '123-456-7890', null));
    // Get messages
    var_dump($oOutMarket->getMessages());
    // Create a list
    var_dump($oOutMarket->addList('somelist', 1698, true, false, false, 'Just an example list', 'Some List'));
    // Subscribe contact to list
    var_dump($oOutMarket->subscribeContactToList(42094396, 179962, 'normal'));
    // Grab all campaigns
    var_dump($oOutMarket->getCampaigns());
    // Create message
    var_dump($oOutMarket->addMessage('An Example Message', 585, '<h1>An Example Message</h1>', 'An Example Message', 'ExampleMessage', 33765, 'normal'));
    // Schedule send
    var_dump($oOutMarket->sendMessage(array(33765), 179962, null, null, null, mktime(12, 0, 0, 1, 1, 2012)));