I have build the journey builder interaction shown on ExactTarget. Everything looks good. Now in the exercise it uses curl command. Is there way to fire up the the journey builder interaction using php code. Bear in mind I used data extensions. This is the exercise https://code.exacttarget.com/getting-started/sending-your-first-email/sending-your-first-email.html

2 Answers 2


If I understand your question, your php will include curl lib commands, as that's typically how php developers make calls to endpoints server-side. (I don't think functions like file_get_contents() are powerful enough.) http://php.net/manual/en/curl.examples.php Just make sure your config settings have curl enabled. UI-side you can just fire the trigger from jquery or other hxr lib. If you really want to avoid curl you can try using fopen() with stream_context_create(): http://php.net/manual/en/function.stream-context-create.php.

  • I will try that
    – Einstein
    Commented Feb 8, 2015 at 20:43
  • @adlan, were you successful? If so, what did you do? Commented Feb 10, 2015 at 15:29

Extending on Drew's previous answer, it's unclear how you intend to Fire the Event. Assuming you plan to use cURL and don't need to serialize any Event data (that is, you just want records in a Data Extension to enter the Interaction), then I would create a new Interaction in Automation Studio with a Fire Event Activity (that uses the Data Extension you created).

fire event activity in Automation Studio

Once you have done this, you can test by firing the event manually from the Automation by clicking the 'Run Once' button, or test by using the following cURL command with a 'Perform' Action to request a SOAP envelope:

curl -XPOST -H "Content-type: text/xml; charset=utf-8" -H "SOAPAction: Perform" -d @request.xml https://webservice.s7.exacttarget.com/Service.asmx

Ensure that you replace webservice.s7.exacttarget.com with the endpoint that you are using for your account instance. Create a new file named 'request.xml' with the following envelope, replacing automation-external-key with the External Key of the Automation (available from the Automation Summary page).

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
     <fueloauth xmlns="http://exacttarget.com">access-token-here</fueloauth>
      <PerformRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
            <Definition xsi:type="Automation">
               <PartnerKey xsi:nil="true"/>
               <ObjectID xsi:nil="true"/>

Note that you will need to replace access-token-here with the OAuth accessToken retrieved from the Fuel Auth Service, or alternatively you can use a basic username/password in your header if your account user is API enabled:

  <wsse:Security soap:mustUnderstand="1">
     <wsse:UsernameToken wsu:Id="SecurityToken-6421ac0b-a454-42a3-99f7-a77ace024446">
        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>

One thing to note is that when using Automation Studio to fire an Event, only new records in the Data Extension will be included in the Event.

Also, you will need to ensure that the Data Extension that you are using is used as the Event Data Source in the Interaction Trigger, so the Trigger can listen for the Event when it's fired.

  • No problem, let me know how you go. Please don't forget to accept this answer if it works for you, for the benefit of other users looking for the same answer. Commented Feb 8, 2015 at 21:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .