コード例 #1
0
    //----------------------------------------------------------------------------------

    public static bool SendSMS(string phone, string messageContent, string msgSpecialId)
    {
        FastApiSoapClient client   = new FastApiSoapClient();
        string            response = client.SendSms(pUser, pPwd, sender, phone, messageContent, msgSpecialId, false, "", 0, "");

        if (response == "OK")
        {
            return(true);
        }
        else
        {
            return(false);
        }
    }
コード例 #2
0
    //--------------------------- T.C. kimlik numaralarına (TCKN) kısa mesaj (SMS) gönderebileceğiniz web metodudur.Bir istekte en fazla 100 adet numaraya gönderim yapabilirsiniz

    public static bool SendSmsTaxNo(string taxno, string messageContent, string msgSpecialId)
    {
        FastApiSoapClient client   = new FastApiSoapClient(); //api client oluşturuldu
        string            response = client.SendSmsTaxNo(pUser, pPwd, sender, taxno, messageContent, msgSpecialId, false, "", 0, "");

        if (response == "OK")
        {
            return(true);
        }
        else
        {
            return(false);
        }
    }