Introduction

Find detailed technical and product documentation, browse through how-to integrate Full Stack Team Six SMS API to better communicate with your customers using your own platform.


API

Our SMS API allows you to send and receive text messages (SMS), fetch or receive delivery reports on your endpoint in real time and ability to see message logs. You can send messages in different languages, schedule your messages, define delivery time window and much more.



 https://portal.fullstackteamsix.com/api/v1/send

PHP Github Link



<?php

$phone = "Enter the recipient phone number";
$msg = "Enter your message here";
$apiKey = "Enter your API Key";


// API URL
$url = 'https://portal.fullstackteamsix.com/api/v1/send/';

// Create a new cURL resource
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_POST, 1);

// Attach encoded JSON string to the POST fields
curl_setopt($ch, CURLOPT_POSTFIELDS,
    "phone=".$phone."&message=".$msg."&key=".$apiKey."");

// Return response instead of outputting
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

// Execute the POST request
$server_output = curl_exec($ch);

// Close cURL resource
curl_close ($ch);

echo $server_output;

 ?>


                        

Kotlin: Github Link




// Instantiate the RequestQueue.
    val queue : RequestQueue = Volley.newRequestQueue(this)

    // Request a string response from the provided URL.
    val stringRequest = object:StringRequest(Method.POST, url,
        Response.Listener { response ->

            textView.text = "Server response:$response";

            // TODO: Check the response if your message has been sent.
            Log.d("server", response)


        }, Response.ErrorListener { error ->

            textView.text = "Error:$error";
            // TODO: Handle error
            Log.d("server", error.toString())

        }) {

        override fun getParams(): MutableMap< String, String> {
            val params = HashMap < String, String>()
            params["phone"] = phone
            params["message"] = name
            params["key"] = apiKey
            return params
        }
    }
    // Add the request to the RequestQueue.
    queue.add(stringRequest)


                        

Java / Android Github Link



// Instantiate the RequestQueue.
    RequestQueue queue = Volley.newRequestQueue(this);

    // Request a string response from the provided URL.
    StringRequest stringRequest = new StringRequest(Request.Method.POST, url,
            new Response.Listener< String>() {
                @Override
                public void onResponse(String response) {

                    Log.d("Hello", response);
                    tv_response.setText(response);
                }
            }, new Response.ErrorListener() {
        @Override
        public void onErrorResponse(VolleyError error) {
            tv_response.setText((CharSequence) error);
        }
    }) {
        @Override
        protected Map< String, String> getParams() {
            Map< String, String> params = new HashMap<>();

            params.put("phone", phone);
            params.put("message", name);
            params.put("key", APIKey);

            return params;
        }
    };


                        

NodeJs Github Link




    let data = {
        "key": api_key, "message": message, "phone": phone
    };
    let qs = querystring.stringify(data);
    let qsLength = qs.length;
    let options = {
        hostname: "portal.fullstackteamsix.com",
        path: '/api/v1/send/index.php',
        method: 'POST',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
            'Content-Length': qsLength
        }
    };

    let buffer = "";
    let req = http.request(options, function (res) {
        res.on('data', function (chunk) {
            buffer += chunk;
        });
        res.on('end', function () {
            console.log(buffer);
        });
    });

    req.write(qs);
    req.end();


                        

Python Github Link



import requests

phone = "Enter Your Recipient Number"
message = "Enter your message here"
apiKey = "Enter Your API Key Here"

url = 'https://portal.fullstackteamsix.com/api/v1/send/'

x = requests.post(url, data={"key": apiKey, "phone": phone, "message": message}, verify=True)

print(x.text)