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 campign to get the insight of trageted data . extedu, 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. If you are unfamiliar with Bootstrap, visit their website and read through the documentation. All of Bootstrap components have been modified to fit the style of Texteduand provide a consistent look throughout the template. This way, we guarantee you will get the best of AdminLTE.
  • IP Address Approval Most of the template example pages contain quick tips on how to create or use a component which can be really helpful when you need to create something on the fly.
  • ApiKey Generation. We are trying our best to make your experience with Textedube smooth. One way to achieve that is to provide documentation and support. If you think that something is missing from the documentation, please do not hesitate to create an issue to tell us about it.
  • Hosted on GitHub. Visit our GitHub repository to view issues, make requests, or contribute to the project.

Note: First three 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. Contains the logo and navbar.
  • HookAPI for Reporting. Contains the user panel and sidebar menu.
  • Campaign Analysis. Contains the page header and content.

Base URL

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

Send API

https://textedu.io/tinyurl/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/tinyurl/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/tinyurl/code.builder/dlr.php?apikey=XXXXXXXXX&messageid=dfde101b-be52-7c08-abd5-9fd9d224b719

Request Format In Curl

$url="https://textedu.io/tinyurl/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/tinyurl/code.builder/analysis.php?apikey=XXXXXXXXX&capname=demo

Request Format In Curl

$url="https://textedu.io/tinyurl/code.builder/analysis.php?apikey=XXXXXXXXX&capname=demo";
$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"}]

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/tinyurl/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/tinyurl/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/tinyurl/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.

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.