Receive Bulk SMS API for Edit Personal Information

http://msg.msgclub.net/rest/services/client/editPersonalDetail?AUTH_KEY=YourAuthKey&userName=xyze&clientId=111&firstName=firstName&lastName=lastName&emailId=xyz@yz.in&dateOfBirth=dd/mm/yyyy&country=CountryCode&state=MP&city=Indore&address=12 AshokNagar&occupation=your Occupation&homePhone=8888888888

Sample Output

{"response":"success","responseCode":"3001"}

Parameter Name with Description

Parameter Name Data Type Description
AUTH_KEY* Alphanumeric Login Authentication Key(This key is unique for every user)
userName Alphanumeric Enter username for edit detail of particular client
clientId Integer Enter clientId for edit detail of particular client
firstName * Text Enter first name
lastName * Text Enter last name
emaiIId * Text Enter EmailId of contact it should be proper
dateOfBirth * date(dd/mm/yyyy) Enter date of birth

Note

Parameter userName or clientId is mandatory. Parameters with (*) are mandatory.
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "http://msg.msgclub.net/rest/services/client/editPersonalDetail?AUTH_KEY=YourAuthKey& userName=xyze&clientId=111&firstName=firstName&lastName=lastName&emailId=xyz@yz.in&dateOfBirth=dd/mm/yyyy&country= CountryCode&state=MP&city=Indore&address=12%20AshokNagar&occupation=your%20Occupation&homePhone=8888888888"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Cache-Control: no-cache"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
curl -X GET \ 'http://msg.msgclub.net/rest/services/client/editPersonalDetail?AUTH_KEY=YourAuthKey&userName=xyze&clientId=111& firstName=firstName&lastName=lastName&emailId=xyz@yz.in&dateOfBirth=dd/mm/yyyy&country=CountryCode&state=MP&city=Indore& address=12%20AshokNagar&occupation=your%20Occupation&homePhone=8888888888' \ -H 'Cache-Control: no-cache'
var client = new RestClient("http://msg.msgclub.net/rest/services/client/editPersonalDetail?AUTH_KEY=YourAuthKey&userName= xyze&clientId=111&firstName=firstName&lastName=lastName&emailId=xyz@yz.in&dateOfBirth=dd/mm/yyyy&country=CountryCode&state =MP&city=Indore&address=12%20AshokNagar&occupation=your%20Occupation&homePhone=8888888888"); var request = new RestRequest(Method.GET); request.AddHeader("Cache-Control", "no-cache"); IRestResponse response = client.Execute(request);
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://msg.msgclub.net/rest/services/client/editPersonalDetail?AUTH_KEY=YourAuthKey&userName=xyze&clientId =111&firstName=firstName&lastName=lastName&emailId=xyz@yz.in&dateOfBirth=dd/mm/yyyy&country=CountryCode&state=MP&city= Indore&address=12%20AshokNagar&occupation=your%20Occupation&homePhone=8888888888" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Cache-Control", "no-cache") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("http://msg.msgclub.net/rest/services/client/editPersonalDetail?AUTH_KEY=YourAuthKey&userName=xyze&clientId=111& firstName=firstName&lastName=lastName&emailId=xyz@yz.in&dateOfBirth=dd/mm/yyyy&country=CountryCode&state=MP&city=Indore& address=12%20AshokNagar&occupation=your%20Occupation&homePhone=8888888888") .get() .addHeader("Cache-Control", "no-cache") .build(); Response response = client.newCall(request).execute();
HttpResponse<String> response = Unirest.get("http://msg.msgclub.net/rest/services/client/editPersonalDetail?AUTH_KEY= YourAuthKey&userName=xyze&clientId=111&firstName=firstName&lastName=lastName&emailId=xyz@yz.in&dateOfBirth=dd/mm/yyyy& country=CountryCode&state=MP&city=Indore&address=12%20AshokNagar&occupation=your%20Occupation&homePhone=8888888888") .header("Cache-Control", "no-cache") .asString();
var settings = { "async": true, "crossDomain": true, "url": "http://msg.msgclub.net/rest/services/client/editPersonalDetail?AUTH_KEY=YourAuthKey&userName=xyze&clientId=111& firstName=firstName&lastName=lastName&emailId=xyz@yz.in&dateOfBirth=dd/mm/yyyy&country=CountryCode&state=MP&city=Indore& address=12%20AshokNagar&occupation=your%20Occupation&homePhone=8888888888", "method": "GET", "headers": { "Cache-Control": "no-cache" } } $.ajax(settings).done(function (response) { console.log(response); });
var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener("readystatechange", function () { if (this.readyState === 4) { console.log(this.responseText); } }); xhr.open("GET", "http://msg.msgclub.net/rest/services/client/editPersonalDetail?AUTH_KEY=YourAuthKey&userName=xyze& clientId=111&firstName=firstName&lastName=lastName&emailId=xyz@yz.in&dateOfBirth=dd/mm/yyyy&country=CountryCode&state=MP& city=Indore&address=12%20AshokNagar&occupation=your%20Occupation&homePhone=8888888888"); xhr.setRequestHeader("Cache-Control", "no-cache"); xhr.send(data);
var http = require("http"); var options = { "method": "GET", "hostname": "msg.msgclub.net", "path": [ "rest", "services", "client", "editPersonalDetail" ], "headers": { "Cache-Control": "no-cache" } }; var req = http.request(options, function (res) { var chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { var body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
var request = require("request"); var options = { method: 'GET', url: 'http://msg.msgclub.net/rest/services/client/editPersonalDetail', qs: { AUTH_KEY: 'YourAuthKey', userName: 'xyze', clientId: '111', firstName: 'firstName', lastName: 'lastName', emailId: 'xyz@yz.in', dateOfBirth: 'dd/mm/yyyy', country: 'CountryCode', state: 'MP', city: 'Indore', address: '12%20AshokNagar', occupation: 'your%20Occupation', homePhone: '8888888888' }, headers: { 'Cache-Control': 'no-cache' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
var unirest = require("unirest"); var req = unirest("GET", "http://msg.msgclub.net/rest/services/client/editPersonalDetail"); req.query({ "AUTH_KEY": "YourAuthKey", "userName": "xyze", "clientId": "111", "firstName": "firstName", "lastName": "lastName", "emailId": "xyz@yz.in", "dateOfBirth": "dd/mm/yyyy", "country": "CountryCode", "state": "MP", "city": "Indore", "address": "12%20AshokNagar", "occupation": "your%20Occupation", "homePhone": "8888888888" }); req.headers({ "Cache-Control": "no-cache" }); req.end(function (res) { if (res.error) throw new Error(res.error); console.log(res.body); });
open Cohttp_lwt_unix open Cohttp open Lwt let uri = Uri.of_string "http://msg.msgclub.net/rest/services/client/editPersonalDetail?AUTH_KEY=YourAuthKey&userName= xyze&clientId=111&firstName=firstName&lastName=lastName&emailId=xyz@yz.in&dateOfBirth=dd/mm/yyyy&country=CountryCode& state=MP&city=Indore&address=12%20AshokNagar&occupation=your%20Occupation&homePhone=8888888888" in let headers = Header.init () |> fun h -> Header.add h "Cache-Control" "no-cache" in Client.call ~headers `GET uri >>= fun (res, body_stream) -> (* Do stuff with the result *)
<?php $request = new HttpRequest(); $request->setUrl('http://msg.msgclub.net/rest/services/client/editPersonalDetail'); $request->setMethod(HTTP_METH_GET); $request->setQueryData(array( 'AUTH_KEY' => 'YourAuthKey', 'userName' => 'xyze', 'clientId' => '111', 'firstName' => 'firstName', 'lastName' => 'lastName', 'emailId' => 'xyz@yz.in', 'dateOfBirth' => 'dd/mm/yyyy', 'country' => 'CountryCode', 'state' => 'MP', 'city' => 'Indore', 'address' => '12%20AshokNagar', 'occupation' => 'your%20Occupation', 'homePhone' => '8888888888' )); $request->setHeaders(array( 'Cache-Control' => 'no-cache' )); try { $response = $request->send(); echo $response->getBody(); } catch (HttpException $ex) { echo $ex; }
<?php $client = new http\Client; $request = new http\Client\Request; $request->setRequestUrl('http://msg.msgclub.net/rest/services/client/editPersonalDetail'); $request->setRequestMethod('GET'); $request->setQuery(new http\QueryString(array( 'AUTH_KEY' => 'YourAuthKey', 'userName' => 'xyze', 'clientId' => '111', 'firstName' => 'firstName', 'lastName' => 'lastName', 'emailId' => 'xyz@yz.in', 'dateOfBirth' => 'dd/mm/yyyy', 'country' => 'CountryCode', 'state' => 'MP', 'city' => 'Indore', 'address' => '12%20AshokNagar', 'occupation' => 'your%20Occupation', 'homePhone' => '8888888888' ))); $request->setHeaders(array( 'Cache-Control' => 'no-cache' )); $client->enqueue($request)->send(); $response = $client->getResponse(); echo $response->getBody();
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "http://msg.msgclub.net/rest/services/client/editPersonalDetail?AUTH_KEY=YourAuthKey&userName=xyze& clientId=111&firstName=firstName&lastName=lastName&emailId=xyz@yz.in&dateOfBirth=dd/mm/yyyy&country=CountryCode&state= MP&city=Indore&address=12%20AshokNagar&occupation=your%20Occupation&homePhone=8888888888", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( "Cache-Control: no-cache" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
import http.client conn = http.client.HTTPConnection("msg.msgclub.net") headers = { 'Cache-Control': "no-cache" } conn.request("GET", "rest,services,client,editPersonalDetail", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
import requests url = "http://msg.msgclub.net/rest/services/client/editPersonalDetail" querystring = {"AUTH_KEY":"YourAuthKey","userName":"xyze","clientId":"111","firstName":"firstName","lastName":"lastName", "emailId":"xyz@yz.in","dateOfBirth":"dd/mm/yyyy","country":"CountryCode","state":"MP","city":"Indore","address": "12%20AshokNagar","occupation":"your%20Occupation","homePhone":"8888888888"} headers = { 'Cache-Control': "no-cache" } response = requests.request("GET", url, headers=headers, params=querystring) print(response.text)
require 'uri' require 'net/http' url = URI("http://msg.msgclub.net/rest/services/client/editPersonalDetail?AUTH_KEY=YourAuthKey&userName=xyze&clientId= 111&firstName=firstName&lastName=lastName&emailId=xyz@yz.in&dateOfBirth=dd/mm/yyyy&country=CountryCode&state=MP&city=Indore&address=12%20AshokNagar&occupation=your%20Occupation&homePhone=8888888888") http = Net::HTTP.new(url.host, url.port) request = Net::HTTP::Get.new(url) request["Cache-Control"] = 'no-cache' response = http.request(request) puts response.read_body
wget --quiet \ --method GET \ --header 'Cache-Control: no-cache' \ --output-document \ - 'http://msg.msgclub.net/rest/services/client/editPersonalDetail?AUTH_KEY=YourAuthKey&userName=xyze&clientId=111& firstName=firstName&lastName=lastName&emailId=xyz@yz.in&dateOfBirth=dd/mm/yyyy&country=CountryCode&state=MP&city=Indore& address=12%20AshokNagar&occupation=your%20Occupation&homePhone=8888888888'
http GET 'http://msg.msgclub.net/rest/services/client/editPersonalDetail?AUTH_KEY=YourAuthKey&userName=xyze&clientId=111& firstName=firstName&lastName=lastName&emailId=xyz@yz.in&dateOfBirth=dd/mm/yyyy&country=CountryCode&state=MP&city=Indore& address=12%20AshokNagar&occupation=your%20Occupation&homePhone=8888888888' \ Cache-Control:no-cache
curl --request GET \ --url 'http://msg.msgclub.net/rest/services/client/editPersonalDetail?AUTH_KEY=YourAuthKey&userName=xyze&clientId=111& firstName=firstName&lastName=lastName&emailId=xyz@yz.in&dateOfBirth=dd/mm/yyyy&country=CountryCode&state=MP&city=Indore& address=12%20AshokNagar&occupation=your%20Occupation&homePhone=8888888888' \ --header 'Cache-Control: no-cache'
#import <Foundation/Foundation.h> NSDictionary *headers = @{ @"Cache-Control": @"no-cache" }; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://msg.msgclub.net/rest/ services/client/editPersonalDetail?AUTH_KEY=YourAuthKey&userName=xyze&clientId=111&firstName=firstName&lastName=lastName& emailId=xyz@yz.in&dateOfBirth=dd/mm/yyyy&country=CountryCode&state=MP&city=Indore&address=12%20AshokNagar&occupation= your%20Occupation&homePhone=8888888888"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:10.0]; [request setHTTPMethod:@"GET"]; [request setAllHTTPHeaderFields:headers]; NSURLSession *session = [NSURLSession sharedSession]; NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { if (error) { NSLog(@"%@", error); } else { NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response; NSLog(@"%@", httpResponse); } }]; [dataTask resume];
import Foundation let headers = [ "Cache-Control": "no-cache" ] let request = NSMutableURLRequest(url: NSURL(string: "http://msg.msgclub.net/rest/services/client/editPersonalDetail?AUTH_KEY= YourAuthKey&userName=xyze&clientId=111&firstName=firstName&lastName=lastName&emailId=xyz@yz.in&dateOfBirth= dd/mm/yyyy&country=CountryCode&state=MP&city=Indore&address=12%20AshokNagar&occupation=your%20Occupation&homePhone= 8888888888")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume()