Loading ...
Best Services in the Town
Sign Up Notify92

Fill out below registration form and get yourself registered in minutes.

  By signing up you agree to the Terms of Service

Use our SMS Gateway API's

Easily connect your application, website or CRM to our platform using our API's and start sending SMS today.

View Pricing Sign Up for Demo Account

HOW TO SEND SMS MESSAGES using API’s?


Make an HTTPS request to our API using the GET or POST method. Check the response code and store returned transaction ID to match later. and store returned Transaction ID to match DLR later.SMS is sent to the handset, it responds with Delivery Report (DLR). If DLR callback URL was configured in API Settings. Notify forwards the DLR to you with the same Transaction ID.

    StringRequest registerRequest = new StringRequest(Request.Method.POST, "https://notify92.pk/api/quick/message",
    new Response.Listener() {
        @Override
            public void onResponse(String response)
        {
            pDialog.dismiss();
            try {
                JSONObject object = new JSONObject(response);
                Log.d("Response from API", "onResponse: " + response);
            }
            catch (JSONException e) {
             e.printStackTrace();
            }
        }
    },
        new Response.ErrorListener()
        {
            @Override
            public void onErrorResponse(VolleyError error)
            {
                new VolleyErrorManager(error, mContext,"Exception: ");
            }
        }
    )
    {
    @Override
        protected Map getParams() {
            Map  params = new HashMap();
            params.put("user", "username");
            params.put("password", "secret");
            params.put("to", "923123456789");
            params.put("mask", "Notify92");
            params.put("message", "Your message");
        return params;
        }
    };
     var Request = require("request");
     Request.post({
         "headers": { "content-type": "application/json" },
         "url": "https://notify92.pk/api/quick/message",
         "body": JSON.stringify({
             "user": "username", "password": "secret", "to": "923123456789", "mask": "Notify92", "message": "Your message"
         })
     }, (error, response, body) => {
         if(error) {
             return console.dir(error);
         }
         console.dir(JSON.parse(body));
     });
    let params = ["user": "username", "password": "secret", "to": "923123456789", "mask": "Notify92", "message": "Your message"]
    as Dictionary

    var request = URLRequest(url: URL(string: "https://notify92.pk/api/quick/message")!)
    request.httpMethod = "POST"
    request.httpBody = try? JSONSerialization.data(withJSONObject: params, options: [])
    request.addValue("application/json", forHTTPHeaderField: "Content-Type")

    let session = URLSession.shared
    let task = session.dataTask(with: request, completionHandler: { data, response, error -> Void in
        do {
            let json = try JSONSerialization.jsonObject(with: data!) as! Dictionary
            print(json)
        } catch {
            print("error")
        }
    })
    task.resume()
    
    using System;
    using System.Net;
    using System.Net.Http;
    using System.Net.Http.Headers;
    using System.Threading.Tasks;

    namespace HttpClientSample
    {
        public class Message
        {
            public string user { get; set; }
            public string password { get; set; }
            public int to { get; set; }
            public string mask { get; set; }
            public string message { get; set; }
        }

        class Program
        {
            static HttpClient client = new HttpClient();

            static async Task CreateMessageAsync(Message message)
            {
                HttpResponseMessage response = await client.PostAsJsonAsync(
                    "api/quick/message", message);
                response.EnsureSuccessStatusCode();
                return response.Headers.Location;
            }

            static async Task SendMessageAsync(string path)
            {
                Message message = null;
                HttpResponseMessage response = await client.GetAsync(path);
                if (response.IsSuccessStatusCode)
                {
                    message = await response.Content.ReadAsStringAsync();
                }
                return message;
            }
                                                static void Main()
            {
                RunAsync().GetAwaiter().GetResult();
            }

            static async Task RunAsync()
            {
                client.BaseAddress = new Uri("https://notify92.pk/");
                client.DefaultRequestHeaders.Accept.Clear();
                client.DefaultRequestHeaders.Accept.Add(
                new MediaTypeWithQualityHeaderValue("application/json"));

                try {
                    Message message = new Message
                    {
                        user = "username",
                        password = "secret",
                        to = "923123456789",
                        mask = "BrainTEL",
                        message = "Your Message"
                    };
                    var url = await CreateMessageAsync(message);
                    Console.WriteLine($"Created at {url}");

                    message = await GetProductAsync(url.PathAndQuery);
                    Console.WriteLine(message);
                }
                catch (Exception e) {
                    Console.WriteLine(e.Message);
                }
                Console.ReadLine();
            }
        }
    }
    
    
    import requests
    payload = {'user': 'username', 'password': 'secret', 'to': '923123456789', 'mask': 'Notify92', 'message': 'Your message'}
    r = requests.get('https://notify92.pk/api/quick/message', params=payload)
    r.text
    function httpPost($url,$params)
    {
        $postData = '';
        foreach($params as $k => $v) {
            $postData .= $k . '='.$v.'&';
        }
        $postData = rtrim($postData, '&');

        $ch = curl_init();
        curl_setopt($ch,CURLOPT_URL,$url);
        curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
        curl_setopt($ch,CURLOPT_HEADER, false);
        curl_setopt($ch, CURLOPT_POST, count($postData));
        curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
        $output = curl_exec($ch);
        curl_close($ch);
        return $output;
    }

    $url = "https://notify92.pk/api/quick/message";
    $params = [
        "user" => "username",
        "password" => "password",
        "mask" => "Notify92",
        "to" => "923123456789",
        "message" => "Your Message",
    ];
    httpPost($url,$params);

User-friendly Documentation

We offer comprehensive documentation that is easy to access and includes code samples. Our API supports Unicode and long messages, and allows for multiple web hooks to create and customise any workflow.

Comprehensive Documentation