Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

send customer data to adobe compaign classic

hasb96249304
Level 1
Level 1

Hello,
we need to create an API call from our website to adobe compaign classic, so when a customer is registred in our website , all his informations will be sent by api to adobe compaign classic, and we want to use curl for that api call,,,
is that possible? and do you have any guide how to do that, i can't find much informations about adobe comapign classic api,

thanks

1 Accepted Solution
MarcelSzimonisz
Correct answer by
Community Advisor
Community Advisor

Hello @hasb96249304,

documentation pages

https://docs.adobe.com/content/help/en/campaign-classic/using/configuring-campaign-classic/api/data-...

https://docs.adobe.com/content/help/en/campaign-classic/using/configuring-campaign-classic/api/busin...

Chronological order of things you need

 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:xtk:session">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:Logon>
         <urn:sessiontoken></urn:sessiontoken>
         <urn:strLogin>guest</urn:strLogin>
         <urn:strPassword>guest</urn:strPassword>
         <urn:elemParameters>
            <!--You may enter ANY elements at this point-->
         </urn:elemParameters>
      </urn:Logon>
   </soapenv:Body>
</soapenv:Envelope>​

 

 

 


Response:

 

 

<SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns="urn:xtk:session" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Body>
      <LogonResponse SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns="urn:xtk:session">
         <pstrSessionToken xsi:type="xsd:string">session_token</pstrSessionToken>
...
...

 

 

 

  • use request 'write' or 'writeCollection' to save recipients
    Write to save one at a time

 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:xtk:session">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:Write>
         <urn:sessiontoken>here_goes_your_session_token</urn:sessiontoken>
         <urn:domDoc>
            <recipient _key="@email,@folder-id" blackListEmail="0" blackList="0" email="john@doe.net" folder-id="939393993" lastName="Doe" firstName="John" xtkschema="nms:recipient"/>
         </urn:domDoc>
      </urn:Write>
   </soapenv:Body>
</soapenv:Envelope>​

 

 

Write collection to save multiple at a time

 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:xtk:session">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:WriteCollection>
         <urn:sessiontoken>here_goes_your_session_token</urn:sessiontoken>
         <urn:domDoc>
            <recipient-collection xtkschema="nms:recipient">
                <recipient _key="@email,@folder-id" blackListEmail="0" blackList="0" email="john@doe.net" folder-id="9878888" lastName="Doe" firstName="John" xtkschema="nms:recipient"/>
                <recipient _key="@email,@folder-id" blackListEmail="0" blackList="0" email="john@doe2.net" folder-id="9878888" lastName="Doe" firstName="John" xtkschema="nms:recipient"/>
            </recipient-collection>
         </urn:domDoc>
      </urn:WriteCollection>
   </soapenv:Body>
</soapenv:Envelope>

 

 

  • use 'logoff' request to log out

 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:xtk:session">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:Logoff>
         <urn:sessiontoken>here_goes_your_session_token</urn:sessiontoken>
      </urn:Logoff>
   </soapenv:Body>
</soapenv:Envelope>​

 

 

 


Marcel

View solution in original post

2 Replies
Manoj_Kumar_
Community Advisor
Community Advisor

Hello @hasb96249304 ,

Yes, it is possible to create recipients via API call from your website.

 

Please refer to this documentation on how to do this.

https://docs.adobe.com/content/help/en/campaign-classic/using/configuring-campaign-classic/api/web-s...

 

Thanks

MarcelSzimonisz
Correct answer by
Community Advisor
Community Advisor

Hello @hasb96249304,

documentation pages

https://docs.adobe.com/content/help/en/campaign-classic/using/configuring-campaign-classic/api/data-...

https://docs.adobe.com/content/help/en/campaign-classic/using/configuring-campaign-classic/api/busin...

Chronological order of things you need

 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:xtk:session">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:Logon>
         <urn:sessiontoken></urn:sessiontoken>
         <urn:strLogin>guest</urn:strLogin>
         <urn:strPassword>guest</urn:strPassword>
         <urn:elemParameters>
            <!--You may enter ANY elements at this point-->
         </urn:elemParameters>
      </urn:Logon>
   </soapenv:Body>
</soapenv:Envelope>​

 

 

 


Response:

 

 

<SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns="urn:xtk:session" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Body>
      <LogonResponse SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns="urn:xtk:session">
         <pstrSessionToken xsi:type="xsd:string">session_token</pstrSessionToken>
...
...

 

 

 

  • use request 'write' or 'writeCollection' to save recipients
    Write to save one at a time

 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:xtk:session">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:Write>
         <urn:sessiontoken>here_goes_your_session_token</urn:sessiontoken>
         <urn:domDoc>
            <recipient _key="@email,@folder-id" blackListEmail="0" blackList="0" email="john@doe.net" folder-id="939393993" lastName="Doe" firstName="John" xtkschema="nms:recipient"/>
         </urn:domDoc>
      </urn:Write>
   </soapenv:Body>
</soapenv:Envelope>​

 

 

Write collection to save multiple at a time

 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:xtk:session">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:WriteCollection>
         <urn:sessiontoken>here_goes_your_session_token</urn:sessiontoken>
         <urn:domDoc>
            <recipient-collection xtkschema="nms:recipient">
                <recipient _key="@email,@folder-id" blackListEmail="0" blackList="0" email="john@doe.net" folder-id="9878888" lastName="Doe" firstName="John" xtkschema="nms:recipient"/>
                <recipient _key="@email,@folder-id" blackListEmail="0" blackList="0" email="john@doe2.net" folder-id="9878888" lastName="Doe" firstName="John" xtkschema="nms:recipient"/>
            </recipient-collection>
         </urn:domDoc>
      </urn:WriteCollection>
   </soapenv:Body>
</soapenv:Envelope>

 

 

  • use 'logoff' request to log out

 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:xtk:session">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:Logoff>
         <urn:sessiontoken>here_goes_your_session_token</urn:sessiontoken>
      </urn:Logoff>
   </soapenv:Body>
</soapenv:Envelope>​

 

 

 


Marcel

View solution in original post