Textedu Developer Zone Version 2.0

This documentation is for versions 2.0 and under.

Textedu is a url shortner, link generation and tracking platfrom help in tracking any mobile marketing based campaign to get the insight of targeted data . textedu, can see a significant bump in user engagement, conversion, targeted audiences, market strategy and sales.

A simple yet powerful tool to ensure you get what you deserve when you invest hard money on your message campaigns.

Textedu ensure engagement, consistency and reliability as well as increases chances of getting most closed match among your target audience directly tracking clicks on web and mobile in real time.

Textedu can be downloaded in two different versions, each appealing to different skill levels and use case.

Textedu Dependencies

Before you go to use, configure your new domain for tracking and generating code, here are few tips for integration:

  • HTTPS Domain SSL Certificate is required for secure data communication with the textedu server.
  • IP Address Approval Need the ip address of client server to be whitelist on textedu firewall for secure connections.
  • ApiKey Generation. Unique key is required parameter in api based access.

Note: All steps are mandatory.

The sending Campaign consists of four major parts:

  • Add Campaign Name. Add a campaign name before promotion. It's help in quantative and quality analysis of mobile marketing.
  • Call Send Campaign Url. Integrate the textedu api for campaign in your existing program. Integration can be done in any of programming language.
  • HookAPI for Reporting. Configure landing url to get the response.
  • Campaign Analysis. Get the campaign based analysis using analysis api.

Base URL

https://textedu.io/code.builder/send.php?

Send API

https://textedu.io/code.builder/send.php?apikey=XXXXXXX&mobile=91XXXXXXXX&sender=XXXXXX&message=click the link to know more offers and promocode contain http://google.com&capname=XXXX

Note: For whitelabel api the hostname will be your domain name (https:// must)

Parameters

variables descriptions
apikey user authentication
sender mask used for campaign
mobile receiver mobile number
message contain to be send
capname campaign name
type type of sms i.e, text sms or language sms

Request Format In Curl


$url="https://textedu.io/code.builder/send.php?apikey=XXXXXXX&mobile=91XXXXXXXX&sender=XXXXXX&message=click the link to know more offers and promocode contain http://google.com&capname=XXXX";
$ch = curl_init();
$timeout = 5;
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
$data = curl_exec($ch);
curl_close($ch);

Response Format


[{"cause":"success","code":"TX_1","uuid":"dfde101b-be52-7c08-abd5-9fd9d224b719","camp_name":"Demo"}]

https://textedu.io/code.builder/campaign.php?apikey=XXXXXXXXX&capname=XXXXXX

Request Format In Curl

$url="https://textedu.io/code.builder/campaign.php?apikey=XXXXXXXXX&capname=XXXXXX";
$ch = curl_init();
$timeout = 5;
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
$data = curl_exec($ch);
curl_close($ch);

Response Format

[{"cause":"added_campaign","code":"TX_22","camp_name":"demo"}]


https://textedu.io/code.builder/dlr.php?apikey=XXXXXXXXX&messageid=dfde101b-be52-7c08-abd5-9fd9d224b719

Request Format In Curl

$url="https://textedu.io/code.builder/dlr.php?apikey=XXXXXXXXX&messageid=dfde101b-be52-7c08-abd5-9fd9d224b719";
$ch = curl_init();
$timeout = 5;
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
$data = curl_exec($ch);
curl_close($ch);

Response Format

[{"cause":"DELIVRD","code":"TX_RES_1","camp_name":"Demo","mobile":"919860XXXXX"}]


https://textedu.io/code.builder/analysis.php?apikey=XXXXXXXXX

Request Format In Curl

$url="https://textedu.io/code.builder/analysis.php?apikey=XXXXXXXXX";
$ch = curl_init();
$timeout = 5;
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
$data = curl_exec($ch);
curl_close($ch);

Response Format

[{"Campaign":"XXX","Thread":"XXX","Targeted":"XXX","Inboxed":"XXX","PageVisit":"XXX","UniqueVisit":"XXX","MutualVisit":"XXX","PotentailVisit":"XXX"}]

If you go through the example pages and would like to copy a component, right-click on the component and choose "inspect element" to get to the HTML quicker than scanning the HTML page.

PHP

The main header contains the logo and navbar. Construction of the navbar differs slightly from Bootstrap because it has components that Bootstrap doesn't provide. The navbar can be constructed in two ways. This is an example for the normal navbar and next we will provide an example for the top nav layout.

PHP 5.0 + version
$apikey="XXXXX";
$type ="TEXT";
$sender="SenderId";
$mobile="9000XXXXXX";
$campaign ="DEMO";
$message = urlencode("This is an example message http://google.com");
$baseurl ="http://textedu.io/code.builder/send.php";
$url =$baseurl."?apikey=".$apikey."&type=".$type."&sender=".$sender."&mobile=".$mobile."&message=".$message."$capname=".$campaign;
$return = file($url);
list($send,$msgcode) = split('[|]',$return[0]);
if ($send == "success")
echo "Sent successfully";
else
echo "Send failed";
 
Java
private static String PostRequest(String subject, String message, String destination) throws Exception {

       String url = "http://textedu.io/code.builder/send.php?";
       URL obj = new URL(url);
       HttpURLConnection con = (HttpURLConnection) obj.openConnection();

       //add reuqest header
       con.setRequestMethod("POST");
       con.setRequestProperty("User-Agent", "Mozilla/5.0");
       con.setRequestProperty("Accept-Language", "en-US,en;q=0.5");
       String content = subject + "\n" + message;
       String urlParameters = "apikey=XXXXXXX&sender=XXXXXX&type=TEXT&capname=XXXX&mobile=" + destination + "&message=" + URLEncoder.encode(content, "UTF-8");

       // Send post request
       con.setDoOutput(true);
       DataOutputStream wr = new DataOutputStream(con.getOutputStream());
       wr.writeBytes(urlParameters);
       wr.flush();
       wr.close();

       int responseCode = con.getResponseCode();

       BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
       String inputLine;
       StringBuffer response = new StringBuffer();
       while ((inputLine = in.readLine()) != null) {
           response.append(inputLine);
       }
       in.close();

       //print result
       return response.toString();

   }

C#

using System.Net.Http;
private static readonly HttpClient client = new HttpClient();
var values = new Dictionary
{
	{ "apikey", "XXXXXXX" },
	{ "sender", "XXXXX" },
	{ "type", "TEXT" },
	{ "capname", "your campaign name" },
	{ "mobile", "destination" },
   { "message", "message content" }
};

var content = new FormUrlEncodedContent(values);
var response = await client.PostAsync("http://textedu.io/code.builder/send.php?", content);
var responseString = await response.Content.ReadAsStringAsync();

Textedu list of error code and descriptions.

ErrCode Descriptions
TX_0 dnd number
TX_1 success
TX_2 err_parameter
TX_3 err_mobile
TX_4 err_sender
TX_5 err_message_type
TX_6 err_message_empty
TX_7 err_dlr
TX_8 err_apikey
TX_9 err_login
TX_10 err_credit
TX_11 err_schedule
TX_12 err_datetime
TX_13 err_gmt
TX_14 err_country
TX_15 err_internal
TX_16 err_senderid_not_approved
TX_17 err_ip_whitelist
TX_18 err_ip_blocked
TX_19 err_api_inactive
TX_20 not_secure
TX_21 err_domain_whitelist
TX_21 err_domain_whitelist
TX_21 err_domain_whitelist
TX_21 err_domain_whitelist
TX_22 added_campaign
TX_21 err_domain_whitelist
TX_100 err_invalid_code

Textedu analytical platform supports the following browsers:

  • IE9+
  • Firefox (latest)
  • Safari (latest)
  • Chrome (latest)
  • Opera (latest)

Can Textedu be used with all programming language?

Textedu is an HTML template that can be used for any purpose. However, it is not made to be easily installed on Wordpress. It will require some effort and enough knowledge of the Wordpress script to do so.

Is there an integration guide for PHP frameworks.?

Short answer, no. However, there are forks and tutorials around the web that provide info on how to integrate with many different frameworks. There are even versions of Texteduthat are integrated with jQuery ajax, AngularJS and/or MVC5 ASP .NET.

How do textedu help in any bussiness model?

The best option is to subscribe to our mailing service to know more.

Get the user interface panel snap.


                 

https://textedu.io/developer/screenshot.pdf

Textedu

Textedu is api base tool that is licensed under the license. This allows you to do pretty much anything you want as long as you include the apikey per domain.