I am trying to fire an ExactTarget triggered email using the Salesforce developer console. I am now getting the error "Problem initating message send during deserialization of JSON payload"
Http http2 = new Http();
HttpRequest req2 = new HttpRequest();
req2.setMethod('POST');
req2.setEndpoint('https://www.exacttargetapis.com/messaging/v1/messageDefinitionSends/b315a0e9-3618-e411-b6d6-b4b52f5cc7b0/send?access_token='+accessToken);
req.setHeader('Content-Type', 'application/json');
String SendId='"Address to send to"' ;
String MyEmail='"My Email"';
String MyName='"My Name"';
req2.setBody('To=' + SendId +'&From=' +MyEmail +'&From_Name=' +MyName);
HttpResponse res2 = http.send(req2);
System.debug('Fulfillment service on Triggered Send '+ res2.getBody());
I believe my issue is setting up the JSON string to pass into the body for ET. Does anybody know how to fix this?