BULK SMS GATEWAY SETUP

I am currently setting up an SMS GATEWAY through the Diafaan application and i am having some challenges setting up. Anyone with a better idea on how to work it out?

Have you looked at their http API? haven’t worked with them
https://www.diafaan.com/manuals/diafaansmsserver/index.html?http_api.htm

what do you use for Bulk SMS? Do you know any way i can set up my SMS gateway?

movesms.co ke I find their API easy to use

Send Simple SMS https://www.sms.movesms.co.ke/API?userId=YOURUSERNAME&password=YOURPASSWORD&senderId=YOURSENDERNAME&sendMethod=simpleMsg&msgType=TEXT&msg=YOUR+MESSAGE&mobile=254700123456,254700123457&duplicateCheck=true&format=json

Personally I prefer Africa’s Talking

Cellcom Bulk SMS API:

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;
import java.util.Arrays;

public class Gateway {

    private String mBaseUrl;
    private int mPartnerId;
    private String mApiKey;
    private String mShortCode;
    private HttpURLConnection connection;

    public Gateway(String baseUrl, int partnerId, String apiKey, String shortCode) {
        this.mBaseUrl = baseUrl;
        this.mPartnerId = partnerId;
        this.mApiKey = apiKey;
        this.mShortCode = shortCode;
    }

    private String getFinalURL(String mobile, String message) {

        String encodedMessage = URLEncoder.encode(message);
        String encodedMobiles = URLEncoder.encode(mobile);

        return mBaseUrl + "?apikey=" + mApiKey + "&partnerID=" + mPartnerId + "&shortcode=" + mShortCode + "&mobile="
                + encodedMobiles + "&message=" + encodedMessage;
    }

    public String sendSingleSms(String message, String mobile) throws IOException {

        String finalUrl = getFinalURL(mobile, message);

        return makeHttpGetRequest(finalUrl);
    }

    public String sendBulkSms(String message, String[] mobiles) throws IOException {

        String numbers = Arrays.toString(mobiles).replace("[", "").replace("]", "").replace(" ", "");

        String finalUrl = getFinalURL(numbers, message);

        return makeHttpGetRequest(finalUrl);
    }

    private String makeHttpGetRequest(String urlString) throws IOException {
        URL url = makeURL(urlString);

        if (connection == null) {

            connection = (HttpURLConnection) url.openConnection();

            connection.setRequestMethod("GET");
            connection.setReadTimeout(15000);
        }

        StringBuilder content;

        BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));

        String line;

        content = new StringBuilder();

        while ((line = in.readLine()) != null) {
            content.append(line);
            content.append(System.lineSeparator());
        }

        return content.toString();
    }

    private URL makeURL(String urlString) throws MalformedURLException {
        return new URL(urlString);
    }

}

You can call sendBulkSms() add your message with the array of mobile numbers in there as parameters

SMS Leopard is very reliable.

i want to be like a reseller or start my own service