Since this is a php exacttarget question I'll post the code which worked for me (note: my composer file included the "salesforce-mc/fuel-sdk-php": "1.3.0" and I copied the config.php.template from vendor/saleforce-mc/fuel-sdk-php/config.php.template to my current directory):
<?php
require __DIR__ . '/vendor/autoload.php';
require 'config.php';
use FuelSdk\ET_Client;
use FuelSdk\ET_TriggeredSend;
try {
$myclient = new ET_Client();
//Triggered Send Testing
// Specify the name of a TriggeredSend that was setup for testing
// Do not use a production Triggered Send Definition
// Send an email with TriggeredSend
print_r("Send an email using a triggered send \n");
$sendTrigger = new ET_TriggeredSend();
$sendTrigger->props = array('CustomerKey' => 'NAME_OF_MY_TRIGGERED_SEND');
$sendTrigger->authStub = $myclient;
$sendTrigger->subscribers = array(array(
'EmailAddress' => 'email1@gmail.com',
'SubscriberKey' => 'email1@gmail.com',
'Attributes' => array(
array('Name' => 'CUSTOM_SUBJECT', 'Value' => 'Custom Email Subject 101'),
array('Name' => 'CUSTOM_LINK', 'Value' => 'https://google.com/test1'),
array('Name' => 'PATIENT_NAME', 'Value' => 'John SmithUser1)
)
),array(
'EmailAddress' => 'email2@hotmail.com',
'SubscriberKey' => 'email2@hotmail.com',
'Attributes' => array(
array('Name' => 'CUSTOM_SUBJECT', 'Value' => 'Custom Email Subject 102'),
array('Name' => 'CUSTOM_LINK', 'Value' => 'https://google.com/test2'),
array('Name' => 'PATIENT_NAME', 'Value' => 'John SmithUser2')
)
));
//https://developer.salesforce.com/docs/atlas.en-us.mc-sdks.meta/mc-sdks/triggered-send-send.htm
$sendResult = $sendTrigger->send();
print_r('Send Status: '.($sendResult->status ? 'true' : 'false')."\n");
print 'Code: '.$sendResult->code."\n";
print 'Message: '.$sendResult->message."\n";
print 'Results: '."\n";
print_r($sendResult->results);
print "\n---------------\n";
} catch (Exception $e) {
echo 'Caught exception: ', $e->getMessage(), "\n";
}
?>
Here is an example config.php file. Make sure you get those clientid/secret/url values from ExactTarget's/Salesforce MarketCloud's 'Installed Packages' page:
<?php
return array(
'appsignature' => 'none',
'clientid' => 'GET_FROM_ET',
'clientsecret' => 'GET_FROM_ET',
'defaultwsdl' => 'https://webservice.exacttarget.com/etframework.wsdl',
'xmlloc' => __DIR__ . '/wsdl/etframework.wsdl.xml',
'baseUrl' => 'https://www.exacttargetapis.com',
'baseAuthUrl' => 'https://GET_FROM_ET.com',
'baseSoapUrl' => 'https://GET_FROM_ET.com',
'useOAuth2Authentication' => true,
);