| |
|
|
Overview
GupShup API enables developers to build SMS-based widgets and services. Using GupShup API, developers can build a variety of widgets and services that advertise their GupShup group messages on their website or blog, and post messages to their group through their favorite website.
Currently, SMS delivery is limited to Indian mobile phones.
GupShup API uses a REST-based interface. All requests are made as HTTP GET and POST requests. The REST response is either a XML or a JSON block.
API Methods
GupShup.getPublicStream
Overview » GupShup.getPublicStream
Parameters / Description
At GupShup we recognize that privacy is important. This document outlines the types of personal information we receive and collect when you use Webaroo's services, as well as some of the steps we take to safeguard information. We hope this will help you make an informed decision about sharing personal information with us.
Sample Request
http://api.smsgupshup.com/GupshupAPI/rest?skipadult=false&from=0&range=10 &method=gupshup.getPublicStream&v=1.0&format=xml
Sample Response (XML)
Sample Response (JSON)
Error Codes
Sample Error Response (XML)
Sample Error Response (JSON)
API Throttling
Description
In order to prevent Denial Of Service attacks, we are currently throttling the number on requests from a particular IP address to the following limits.
A throttle tag is appended with the response once a throttle warn limit is reached.
Sample Throttle Response (XML)
Sample Throttle Response (JSON)
The following error response will be returned once the throttling limit is reached.
Sample Throttle Response (XML)
Sample Throttle Response (JSON)
Featured Widgets
Widget for your GupShup group
You can display recent messages from your GupShup group on your website and blogs by using this widget. Visitors to your blog or website can also join your GupShup group by entering their phone numbers.
|
|
try
{
GupShup.html.util.showElement("adModule2",false);
GupShup.html.util.overlay(document.getElementById("adModuleholder2_RIGHT"),document.getElementById("adModule2"),"left", 0, 0);
}
catch(error)
{
if (GupShup.conf.jsDebug)
alert('Could not process ad module 2 : error-' + error);
}
var innerScriptDiv = "";
var innerScriptText = "";
var orientation = "RIGHT";
var modules = GupShup.conf[orientation + '_Modules'] = new Array();
GupShup.conf.currentModule = modules[0] = {name : 'errorMsg.jsp', rank : 0,
orientation : 'right', refreshUrl : '', refreshArgs : ''};
GupShup.html.dynamicBar.executeJavaScript('errorMsg.jsp_RIGHT_javaScript');
GupShup.conf.currentModule = modules[1] = {name : 'paidSupport.jsp', rank : 1,
orientation : 'right', refreshUrl : '', refreshArgs : ''};
GupShup.html.dynamicBar.executeJavaScript('paidSupport.jsp_RIGHT_javaScript');
GupShup.conf.currentModule = modules[2] = {name : 'adModule2.jsp', rank : 2,
orientation : 'right', refreshUrl : '', refreshArgs : ''};
GupShup.html.dynamicBar.executeJavaScript('adModule2.jsp_RIGHT_javaScript');
GupShup.conf.currentModule = null;
|
|