TargetEveryone API

The TargetEveryOne system consists of 4 APIs. Here’s a short break down of the systems and what they do.

CRM SYSTEM

This will handle your contacts in the TargetEveryone´s system.

DISTRIBUTION SYSTEM

This is where you can distribute a campaign to one or many contacts via SMS or Email.

TEMPLATE SYSTEM

This system lets you build predefined templates for getting your customers to engage with your offer. It can for example be an opt- in form that you have on your webpage.

ANALYTICS/STATISTICS SYSTEM

The analytics module lets you access the statistical data that your campaign generates.
 

AN EXAMPLE OF AN INTEGRATION

A typical integration can be that a company wants to add a landing page to their existing SMS communication. They can then choose to integrate their business logic with TargetEveryOne´s Distribution API to send out their mobile landing pages via their own SMS gateway.
If they want to retrieve data on the outcome of a campaign, they can choose to integrate with our Analytics API.

CUSTOM INTEGRATIONS

We can also create custom integration with companies that have very specific needs. If that is the case, please contact us and we will go over your situation in detail.

SAMPLE CODE:

String xml =
“<Entities.ContactsDetail xmlns=
"http://schemas.datacontract.
org/2004/07/TEO_WBS.
WEB.LogicLayer.BusinessLogic">
   <Address />
   <AdminId>0</AdminId>
   <City />
   <Company />
   <Country />
   <CreationTypeId>4
   </CreationTypeId>
   <DOB />
   <Email>user@gmmm.com</Email>
   <ExtInfo1 />
   <ExtInfo2 />
   <ExtInfo3 />
   <ExtInfo4 />
   <ExtInfo5 />
   <ExtInfo6 />
   <ExtInfo7 />
   <ExtInfo8 />
   <ExtInfo9 />
   <ExtInfo10 />
   <ExtInfo11 />
   <ExtInfo12 />
   <ExtInfo13 />
   <ExtInfo14 />
   <ExtInfo15 />
   <ExtInfo16 />
   <ExtInfo17 />
   <ExtInfo18 />
   <ExtInfo19 />
   <ExtInfo20 />
   <FirstName>FirstName
   </FirstName>
   <Gender />
   <ISOCountryCode />
   <IsActive>true</IsActive>
   <LastName>LastName</LastName>
   <MobileCountryCode>47
   </MobileCountryCode>
   <MobileNumber>48483838
   </MobileNumber>
   <SkypeId />
   <State />
   <Zip />
</Entities.ContactsDetail>”;


public void CallMethod(string url, string xml)
{
 try
  {
   byte[] bytes = Encoding.UTF8.GetBytes(xml);
   HttpWebRequest request = 
(HttpWebRequest)
WebRequest.Create(url);
   request.Method = "POST";
   request.ContentLength = bytes.Length;
   request.ContentType = "text/xml";
   using (Stream requestStream = 
   request.GetRequestStream())
  {
   requestStream.Write(bytes, 0, bytes.Length);
  }
   HttpWebResponse response = 
(HttpWebResponse)
request.GetResponse();
   Stream resStream = 
   response.GetResponseStream();
   StreamReader rdStreamRdr = new StreamReader(resStream);
  if (response.StatusCode != HttpStatusCode.OK)
  {
   string message = String.Format("POST failed. Received HTTP {0}",
   response.StatusCode);
   throw new ApplicationException(message); 
  }
  else
  {
   string message = rdStreamRdr.ReadToEnd();
  }
}
catch {}

API DOCUMENTATION

Download API Document
Login