Esempio n. 1
0
 public function UpdateStatus()
 {
     $contract = DataObject::get_one('Contract', 'ID = ' . $_GET['id'] . " and EchosignID = '" . $_GET['documentKey'] . "'");
     $contract->Status = $_GET['status'];
     $contract->write();
     mail('*****@*****.**', 'Contract Update' . $contract->EchosignID, json_encode($_GET));
     die;
     $ESLoader = new SplClassLoader('EchoSign', realpath(__DIR__ . '/../../'));
     $ESLoader->register();
     $client = new SoapClient(EchoSign\API::getWSDL());
     $api = new EchoSign\API($client, 'PGRUY64K6T664Z');
     $data = $api->getDocumentInfo($contract->EchosignID);
     mail('*****@*****.**', 'Contract Update' . $contract->EchosignID, json_encode($data));
 }
Esempio n. 2
0
<?php

error_reporting(E_ALL);
ini_set('display_errors', 1);
/*
 *  Setup variables
 *  Change these before testing
 */
$api_key = 'XFJQ27GA6H4GP3X';
$recipient_email = '*****@*****.**';
$merge_fields = array('first_name' => 'Craig', 'last_name' => 'Ballinger', 'website' => 'craigballinger.com');
//for testing document methods not required to start
$document_key = 'AN EXISTING DOCUMENT KEY';
$mega_sign_document_key = 'AN EXISTING MEGA SIGN DOCUMENT KEY';
$filepath = 'demo.pdf';
//end setup variables
include 'Autoloader.php';
$ESLoader = new SplClassLoader('EchoSign', realpath(__DIR__ . '/lib') . '/');
$ESLoader->register();
$client = new SoapClient(EchoSign\API::getWSDL());
$api = new EchoSign\API($client, $api_key);