Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: zetaops/SMS-API
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: verimor/SMS-API
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.

Commits on Oct 23, 2019

  1. Update user_guide.md

    vasifhuseynov authored Oct 23, 2019
    Copy the full SHA
    84c55f3 View commit details

Commits on Dec 2, 2019

  1. Copy the full SHA
    82b4268 View commit details
  2. Copy the full SHA
    8542fca View commit details
  3. Copy the full SHA
    131e080 View commit details
  4. Create README.md

    vasifhuseynov authored Dec 2, 2019
    Copy the full SHA
    265ccad View commit details
  5. Update README.md

    vasifhuseynov authored Dec 2, 2019
    Copy the full SHA
    5d898f2 View commit details
  6. Update README.md

    vasifhuseynov authored Dec 2, 2019
    Copy the full SHA
    91dc30a View commit details
  7. Update README.md

    vasifhuseynov authored Dec 2, 2019
    Copy the full SHA
    ad89077 View commit details
  8. Update README.md

    vasifhuseynov authored Dec 2, 2019
    Copy the full SHA
    af8d005 View commit details

Commits on Mar 4, 2020

  1. Fix copy-paste error

    fatihorhan authored Mar 4, 2020
    Copy the full SHA
    ea3c03d View commit details

Commits on Apr 28, 2020

  1. Add WHMCS integration

    Fatih Orhan committed Apr 28, 2020
    Copy the full SHA
    7345383 View commit details
  2. Create README.md

    Fatih Orhan committed Apr 28, 2020
    Copy the full SHA
    9d2c645 View commit details
  3. Move readme

    Fatih Orhan committed Apr 28, 2020
    Copy the full SHA
    701e566 View commit details

Commits on May 4, 2020

  1. Mention allowed ips

    fatihorhan authored May 4, 2020
    Copy the full SHA
    ae8fad3 View commit details
  2. typo

    fatihorhan authored May 4, 2020
    Copy the full SHA
    e75f2ae View commit details
  3. Add Allowed IP notes to sample codes

    Fatih Orhan committed May 4, 2020
    Copy the full SHA
    ff482e2 View commit details

Commits on May 21, 2020

  1. Update verimor.zip

    Fatih Orhan committed May 21, 2020
    Copy the full SHA
    93c3b4b View commit details

Commits on Jun 2, 2020

  1. Update user_guide.md

    Fatih Orhan committed Jun 2, 2020
    Copy the full SHA
    bcffc76 View commit details

Commits on Jun 3, 2020

  1. Update user_guide.md

    mervebirsinnn committed Jun 3, 2020
    Copy the full SHA
    271a016 View commit details
  2. Update user_guide.md

    içindekiler linkleri oluşturuldu
    mervebirsinnn committed Jun 3, 2020
    Copy the full SHA
    0d46484 View commit details

Commits on Sep 15, 2020

  1. Update user_guide.md

    omercurgul authored Sep 15, 2020
    Copy the full SHA
    9f11f1a View commit details
  2. Update user_guide.md

    omercurgul authored Sep 15, 2020
    Copy the full SHA
    0492bec View commit details
  3. Update user_guide.md

    omercurgul authored Sep 15, 2020
    Copy the full SHA
    54bcd3e View commit details
  4. Update user_guide.md

    omercurgul authored Sep 15, 2020
    Copy the full SHA
    e2b3add View commit details
  5. Update user_guide.md

    omercurgul authored Sep 15, 2020
    Copy the full SHA
    f023274 View commit details
  6. Update user_guide.md

    omercurgul authored Sep 15, 2020
    Copy the full SHA
    f2abddc View commit details

Commits on Sep 17, 2020

  1. Copy the full SHA
    f9c70de View commit details

Commits on Oct 8, 2020

  1. Update rate limit

    fatihorhan authored Oct 8, 2020
    Copy the full SHA
    dd1f757 View commit details

Commits on Nov 10, 2020

  1. Copy the full SHA
    02b3011 View commit details

Commits on Nov 12, 2020

  1. Copy the full SHA
    e88d608 View commit details

Commits on Nov 20, 2020

  1. Copy the full SHA
    65fad5b View commit details

Commits on Jan 14, 2021

  1. Update user_guide.md

    emrbli authored Jan 14, 2021
    Copy the full SHA
    431b019 View commit details
  2. Update user_guide.md

    emrbli authored Jan 14, 2021
    Copy the full SHA
    1f20c8d View commit details

Commits on Jan 19, 2021

  1. Update user_guide.md

    ahmetsaridogan authored Jan 19, 2021
    Copy the full SHA
    81e0769 View commit details

Commits on Feb 10, 2021

  1. Update user_guide.md

    İYS GÜNLÜK RAPOR ALIMI
    ilkayorhanlar authored Feb 10, 2021
    Copy the full SHA
    2031d34 View commit details
  2. Merge pull request verimor#2 from ilkayorhanlar/patch-1

    Update user_guide.md
    fatihorhan authored Feb 10, 2021
    Copy the full SHA
    c9351de View commit details

Commits on Feb 15, 2021

  1. Update user_guide.md

    omercurgul authored Feb 15, 2021
    Copy the full SHA
    e8b7948 View commit details

Commits on Feb 17, 2021

  1. Update user_guide.md

    omercurgul authored Feb 17, 2021
    Copy the full SHA
    2c029d7 View commit details

Commits on Feb 18, 2021

  1. Update user_guide.md

    ilkayorhanlar authored Feb 18, 2021
    Copy the full SHA
    75d7219 View commit details

Commits on Feb 19, 2021

  1. Update user_guide.md

    emrbli authored Feb 19, 2021
    Copy the full SHA
    7fff636 View commit details

Commits on Feb 22, 2021

  1. Update user_guide.md

    emrbli authored Feb 22, 2021
    Copy the full SHA
    835790b View commit details
  2. Update user_guide.md

    emrbli authored Feb 22, 2021
    Copy the full SHA
    22a5110 View commit details
  3. Update user_guide.md

    emrbli authored Feb 22, 2021
    Copy the full SHA
    69bfd95 View commit details
  4. Update user_guide.md

    emrbli authored Feb 22, 2021
    Copy the full SHA
    a4ae3e7 View commit details
  5. Update user_guide.md

    emrbli authored Feb 22, 2021
    Copy the full SHA
    8477dda View commit details

Commits on Mar 1, 2021

  1. Update user_guide.md

    emrbli authored Mar 1, 2021
    Copy the full SHA
    4d3ead8 View commit details

Commits on Apr 5, 2021

  1. Update user_guide.md

    omercurgul authored Apr 5, 2021
    Copy the full SHA
    e4a9802 View commit details
  2. Update user_guide.md

    ilkayorhanlar authored Apr 5, 2021
    Copy the full SHA
    c21fd68 View commit details

Commits on Apr 18, 2021

  1. Update user_guide.md

    omercurgul authored Apr 18, 2021
    Copy the full SHA
    5704d3f View commit details

Commits on May 1, 2021

  1. Update user_guide.md

    omercurgul authored May 1, 2021
    Copy the full SHA
    5800d4b View commit details
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -3,5 +3,9 @@
SMS gönderimlerinizi web paneli üzerinden yapabildiğiniz gibi entegrasyon ile kendi yazılımız üzerinden de yapabilirsiniz.

# İçindekiler
* [SMS API Dökümanı](https://github.com/verimor/SMS-API/blob/master/user_guide.md)
* [Örnek Kodlar](https://github.com/verimor/SMS-API/tree/master/sample_codes)
* **Verimor ile Entegrasyon**
* [SMS API Dökümanı](https://github.com/verimor/SMS-API/blob/master/user_guide.md)
* [Örnek Kodlar](https://github.com/verimor/SMS-API/tree/master/sample_codes)
* **Üçüncü Parti Entegrasyonlar**
* [WHMCS](https://github.com/verimor/SMS-API/tree/master/integrations/whmcs)
* [Opencart SMS](https://github.com/verimor/SMS-API/tree/master/integrations/opencart-sms)
42 changes: 42 additions & 0 deletions integrations/opencart-sms/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Opencart – Verimor SMS Eklentisi ile Neler Yapabilirsiniz?**

[Verimor](https://www.verimor.com.tr/) aboneliğinizle, Opencart müşterilerinize SMS gönderebileceğiniz bu modül ile yeni müşteri oluştuğunda, yeni bir sipariş verildiğinde veya sipariş durumu güncellendiğinde ilgili numaraya istenen içerikte kısa mesaj gönderilmesi sağlanmaktadır.

## Özellikler
- SMS Ayarları
- Sisteme yeni üye olan bir müşteri olduğunda virgül ile ayrılmış belirlenen numaralara istenen içerikte sms gönderebilirsiniz.
- Sisteme yeni üye olan bir müşteriye istenen içerikte sms gönderebilirsiniz.
- Sisteme yeni sipariş bir sipariş geldiğinde virgül ile ayrılmış belirlenen numaralara istenen içerikte SMS gönderebilirsiniz.
- Yeni bir sipariş geldiğinde sipariş sahibine istenen içerikte SMS gönderebilirsiniz.
- Verilen siparişin sipariş durumu güncellendiğinde her durum için ayrı ayrı SMS içeriği belirleyip bu SMS’lerin müşteriye gitmesini sağlayabilirsiniz.
- Sipariş müşteri tarafından iptal/iade edildiğinde belirlenen numaralara istenilen içerikte SMS gönderilmesi sağlayabilirsiniz.

- Özel SMS
- Virgül ile ayrılmış numaralara toplu SMS gönderimi sağlayabilirsiniz.

- Toplu SMS
- Siparişler sayfasındaki istenilen siparişler seçilerek istenilen içerikte SMS gönderimi yapılabilirsiniz.
- Müşteriler sayfasında istenilen müşteriler seçilerek istenilen içerikte SMS gönderimi yapabilirsiniz.

- Gelen SMS
- Numaralarınıza gelen smsleri görüntüleyip müşterileriniz ile eşleştirebilir ve istediğiniz mesaja modül üzerinden cevap verebilirsiniz.

- Bulut Santral
- Bulut Santralinize gelen veya giden çağrıları görüntülüyebilir. - Opencart sisteminizdeki müşterileriniz ile direk eşleştirebilirsiniz. İstenilen çağrının detayına tıklayarak gidebilirsiniz.

## Opencart SMS Entegrasyonu
- Kurulum
- Modülü opencart sürümünüzü dikkate alarak [bu adres](https://www.opencart.com/index.php?route=marketplace/extension/info&extension_id=46310) üzerinden indirin.
- İndirilen ocmod zip dosyasını Extensions > Installer adresinden yükleyin.
- Extensions > Extensions > Modules altından Verimor SMS modülünü kurun.
- Extensions > Modifications sayfaındaki refresh (yenileme) butonunu tıklayın.
- Extensions menüsü altına Verimor menüsü eklenmiş olacaktır. Bu menüye tıklayarak modül ayarlarına gidebilirsiniz.
- OIM üzerinden kimlik bilgilerini alma.
- SMS Hizmeti > SMS Ayarlarım sayfasından API Ayarlarım altında erişimi açmalı ve kullanıcı adı ve şifre alanını kopyalayın.
- Opencart sisteminin çalıştığı sunucunuzun IP adresini Api İzinli IP’ler alanına eklemelisiniz.
- Bulut Santral Hizmeti > Santral Ayarlarım sayfasında CRM Entegrasyonu altında API anahtarınızı kopyalayın.
- Opencart sisteminizden Verimor SMS modülüne girin Kullanıcı adı, şifre ve API Key alanına daha önce kopyaladığınız verileri yapıştırın.
- Hesabımı Doğrula butonuna tıklayın. Herhangi bir sorun yaşamazsanız sağ üste kalan kredinizi görebileceksiniz. Hata açıklamaları için github sayfamıza bakabilirsiniz.
## Dikkat
- Bu modül Opencart sürümlerinin saf versiyonları ile test edilmiştir. (Güncelleme yapılan versiyonlar test edilmemiştir.)
- Bu modül Opencart sisteminde extra başka bir modül olmadan test edilmiştir.
50 changes: 50 additions & 0 deletions integrations/whmcs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
**WHMCS – Verimor SMS Eklentisi ile Neler Yapabilirsiniz?**
* Toplu olarak ve kişi bazlı SMS gönderebilirsiniz.
* Eklentide toplam 25 adet SMS şablonu bulunmaktadır. Tüm şablonlar ön tanımlı olarak gelir ve aktifleştirmeniz yeterlidir.
* SMS şablonlarını güncelleyebilirsiniz. Böylelikle müşterileriniz için özelleştirilmiş SMS’ler oluşturabilirsiniz.
* Müşteri özet sayfasında bulunan “Sms Gönder” kutucuğu ile eklenti paneline girmeden SMS gönderebilirsiniz.

**Kurulum ve Kullanım**
1. Online İşlem Merkezi (OİM) > SMS Hizmeti > SMS Ayarlarım sayfasındaki “API Erişimi” pasif ise aktif hale getiriniz. Güvenlik sebebiyle sunucunuzun IP adresini de girmeniz zorunludur.
2. Eklenti dosyasını WHMCS sisteminizde bulunan /whmcs/modules/addons/ klasörüne atınız. (Eklenti dosyasını indirmek için [tıklayınız](https://github.com/verimor/SMS-API/raw/master/integrations/whmcs/verimor-whmcs-v8.1-ve-sonrası.zip).)
3. WHMCS admin panelinizden Kurulum->Eklenti Modülü’nden tüm eklentileri listeleyiniz.
4. VERİMOR SMS eklentisini listeden bularak aktifleştirerek eklenti izinleri ayarlayınız.
5. Artık “Eklentiler” sekmesinde “VERİMOR SMS” görüntülenecektir.

**Şablonlar**
* Sipariş Onay: Sipariş onaylandığında müşteriye SMS gönderir.
* Yönetici Giriş: Yönetici girişi yapıldığında belirlenmiş numaralara SMS gönderir.
* Paket Değişikliği: Modül paket değişikliğinde mesaj gönderir.
* Modül Şifresi Değişimi: Hosting hesabı şifresi değiştiğinde SMS gönderir.
* Yeni Hosting Hesabı: Bir hizmet aktifleştirildiğinde SMS göderir
* Bir Hizmet Durdurma: Bir hizmet duraklatıldığında SMS gönderir.
* Hizmet Başlatma: Bir hizmet tekrar başlatıldığında SMS gönderir.
* Alan Adı Kayıt:
* * Bir domain kayıt edildikten sonra müşteriye SMS gönderir.
* * Bir domain kayıt edildikten sonra yöneticiye SMS gönderir.
* Alan Adı Kayıt Hatası:
* * Domain kayıt edilirken hata oluşursa müşteriye SMS gönderir.
* * Domain kayıt edilirken hata oluşursa yöneticiye SMS gönderilir.
* Alan Adı Yenileme:
* * Domain yenilendikten sonra müşteriye SMS gönderir.
* * Domain yenilendikten sonra yöneticiye SMS gönderir.
* Alan Adı Yenileme Hata: Alan adı yenilemede hata olduğunda yöneticiye mesaj gönderir.
* Yeni Müşteri:
* * Müşteri kaydı tamamlandıktan sonra müşteriye SMS gönderir.
* * Müşteri kaydı tamamlandıktan sonra yöneticiye SMS gönderir.
* Müşteri Şifre Değişimi: Müşteri şifresini değiştirdiğinde müşteriye SMS gönderir.
* Müşteri Girişi: Müşteri sisteme giriş yaptıktan sonra belirlenmiş yöneticiye mesaj gönderir.
* Alan Adı Kalan Süre Bildirimi: Alan adı süresinin dolmasına [x] gün kala mesaj gönderir. [x] değeri kurulumda 15 olarak atanır.
* Yeni Fatura: Yeni bir fatura oluşturulduğunda müşteriye SMS gönderir.
* Ödenmiş Fatura: Fatura ödendiğinde müşteriye SMS gönderir.
* Fatura Hatırlatma: Ödenmemiş fatura için hatırlatma mesajı gönderir.
* Ödenmemiş Fatura 1. Hatırlatma: Ödenmemiş faturanın ilk zaman aşımında SMS gönderir.
* Ödenmemiş Fatura 2. Hatırlatma: Ödenmemiş faturanın ikinci zaman aşımında SMS gönderir.
* Ödenmemiş Fatura 3. Hatırlatma: Ödenmemiş faturanın üçüncü zaman aşımında SMS gönderir.
* Yeni Ticket Açılması: Bir ticket açıldığında yöneticiye SMS gönderir.
* Ticket Cevabı:
* * Bir ticket cevaplandığında müşteriye SMS gönderir.
* * Bir ticket cevaplandığında yöneticiye SMS gönderir.
* Ticket Kapatılması: Ticket kapatıldığında müşteriye SMS gönderir.
* Müşteri Girişinde OTP: Müşteri girişi sırasında OTP SMS göndererek telefon numarası doğrulaması istenir.
* Yeni Üye OTP: Yeni bir üyelik oluşturulduğunda, üyeye OTP sms göndererek üyenin ana sayfasında telefon numarası doğrulması istenir.
Binary file not shown.
Binary file not shown.
Binary file added integrations/whmcs/verimor-whmcs-v8.9-v8.10.zip
Binary file not shown.
30 changes: 30 additions & 0 deletions lets-encrypt-r3.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
-----BEGIN CERTIFICATE-----
MIIFFjCCAv6gAwIBAgIRAJErCErPDBinU/bWLiWnX1owDQYJKoZIhvcNAQELBQAw
TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh
cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMjAwOTA0MDAwMDAw
WhcNMjUwOTE1MTYwMDAwWjAyMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNTGV0J3Mg
RW5jcnlwdDELMAkGA1UEAxMCUjMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK
AoIBAQC7AhUozPaglNMPEuyNVZLD+ILxmaZ6QoinXSaqtSu5xUyxr45r+XXIo9cP
R5QUVTVXjJ6oojkZ9YI8QqlObvU7wy7bjcCwXPNZOOftz2nwWgsbvsCUJCWH+jdx
sxPnHKzhm+/b5DtFUkWWqcFTzjTIUu61ru2P3mBw4qVUq7ZtDpelQDRrK9O8Zutm
NHz6a4uPVymZ+DAXXbpyb/uBxa3Shlg9F8fnCbvxK/eG3MHacV3URuPMrSXBiLxg
Z3Vms/EY96Jc5lP/Ooi2R6X/ExjqmAl3P51T+c8B5fWmcBcUr2Ok/5mzk53cU6cG
/kiFHaFpriV1uxPMUgP17VGhi9sVAgMBAAGjggEIMIIBBDAOBgNVHQ8BAf8EBAMC
AYYwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMBMBIGA1UdEwEB/wQIMAYB
Af8CAQAwHQYDVR0OBBYEFBQusxe3WFbLrlAJQOYfr52LFMLGMB8GA1UdIwQYMBaA
FHm0WeZ7tuXkAXOACIjIGlj26ZtuMDIGCCsGAQUFBwEBBCYwJDAiBggrBgEFBQcw
AoYWaHR0cDovL3gxLmkubGVuY3Iub3JnLzAnBgNVHR8EIDAeMBygGqAYhhZodHRw
Oi8veDEuYy5sZW5jci5vcmcvMCIGA1UdIAQbMBkwCAYGZ4EMAQIBMA0GCysGAQQB
gt8TAQEBMA0GCSqGSIb3DQEBCwUAA4ICAQCFyk5HPqP3hUSFvNVneLKYY611TR6W
PTNlclQtgaDqw+34IL9fzLdwALduO/ZelN7kIJ+m74uyA+eitRY8kc607TkC53wl
ikfmZW4/RvTZ8M6UK+5UzhK8jCdLuMGYL6KvzXGRSgi3yLgjewQtCPkIVz6D2QQz
CkcheAmCJ8MqyJu5zlzyZMjAvnnAT45tRAxekrsu94sQ4egdRCnbWSDtY7kh+BIm
lJNXoB1lBMEKIq4QDUOXoRgffuDghje1WrG9ML+Hbisq/yFOGwXD9RiX8F6sw6W4
avAuvDszue5L3sz85K+EC4Y/wFVDNvZo4TYXao6Z0f+lQKc0t8DQYzk1OXVu8rp2
yJMC6alLbBfODALZvYH7n7do1AZls4I9d1P4jnkDrQoxB3UqQ9hVl3LEKQ73xF1O
yK5GhDDX8oVfGKF5u+decIsH4YaTw7mP3GFxJSqv3+0lUFJoi5Lc5da149p90Ids
hCExroL1+7mryIkXPeFM5TgO9r0rvZaBFOvV2z0gp35Z0+L4WPlbuEjN/lxPFin+
HlUjr8gRsI3qfJOQFy/9rKIJR0Y/8Omwt/8oTWgy1mdeHmmjk7j1nYsvC9JSQ6Zv
MldlTTKB3zhThV1+XWYp6rjd5JW1zbVWEkLNxE7GJThEUG3szgBVGP7pSWTUTsqX
nLRbwHOoq7hHwg==
-----END CERTIFICATE-----
25 changes: 0 additions & 25 deletions rapidssl.crt

This file was deleted.

6 changes: 4 additions & 2 deletions sample_codes/C#/WindowsFormsApplication1/Form1.cs
Original file line number Diff line number Diff line change
@@ -22,7 +22,9 @@ public Form1()

private void sendTB_Click(object sender, EventArgs e)
{
// NOT: Bu kod JSON.NET kütüphanesini kullanır. Şu adresten indirip proje referanslarına eklemelisiniz: http://www.newtonsoft.com/json
// Bu kod JSON.NET kütüphanesini kullanır. Şu adresten indirip proje referanslarına eklemelisiniz: http://www.newtonsoft.com/json
// Sunucu IP adresinizi https://oim.verimor.com.tr/sms_settings/edit sayfasından girmiş olmanız gerekir.
// Girmezseniz 401 hatası alırsınız.
var smsIstegi = new SmsIstegi();
smsIstegi.username = kullaniciAdiTB.Text;
smsIstegi.password = sifreTB.Text;
@@ -41,7 +43,7 @@ private void IstegiGonder(SmsIstegi istek)

try
{
string campaign_id = wc.UploadString("http://sms.verimor.com.tr/v2/send.json", payload);
string campaign_id = wc.UploadString("https://sms.verimor.com.tr/v2/send.json", payload);
MessageBox.Show("Mesaj gönderildi, kampanya id: " + campaign_id);
}
catch (WebException ex) // 400 hatalarında response body'de hatanın ne olduğunu yakalıyoruz
2 changes: 1 addition & 1 deletion sample_codes/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* [ASP](https://github.com/verimor/SMS-API/blob/master/sample_codes/tek_mesaj_cok_kisi.asp)
* [ASP](https://github.com/verimor/SMS-API/blob/master/sample_codes/asp)
* [C#](https://github.com/verimor/SMS-API/tree/master/sample_codes/C%23)
* [JAVA](https://github.com/verimor/SMS-API/tree/master/sample_codes/java) (SMS Gönderimi)
* [JAVA](https://github.com/verimor/SMS-API/tree/master/sample_codes/java_inbound_sms) (Gelen SMS Alımı)
2 changes: 2 additions & 0 deletions sample_codes/asp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* [Tek Mesaj Çok Kişi](https://github.com/verimor/SMS-API/blob/master/sample_codes/asp/tek_mesaj_cok_kisi.asp)
* [Kalan Kredi Sorgulama](https://github.com/verimor/SMS-API/blob/master/sample_codes/asp/kalan_kredi_sorgulama.asp)
20 changes: 20 additions & 0 deletions sample_codes/asp/kalan_kredi_sorgulama.asp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<%
' Sunucu IP adresinizi https://oim.verimor.com.tr/sms_settings/edit sayfasından girmiş olmanız gerekir.
' Girmezseniz 401 hatası alırsınız.
username ="kullanıcı_adınız"
password = Server.URLEncode("sifreniz")
url = "https://sms.verimor.com.tr/v2/balance?username=" & username &"&"&"password="&password
Set HttpReq = Server.CreateObject("MSXML2.ServerXMLHTTP")
HttpReq.open "GET", url, false
HttpReq.Send()
sonuc = HttpReq.responseText
If IsNumeric(sonuc) and sonuc <>"" Then
response.write("______ Kalan Sms Kredi Miktarı :<b> <font color='red'> " & sonuc & "<b></font><br>")
response.write("______ <b>Not: 100.000 'den az kaldığında lütfen birim amirinize bilgi veriniz.<b>")
Else
response.write("Kredi sorgulaması yapılamadı.Kullanıcı adınızı ve şifrenizi kontrol ediniz.")
End If
%>
Original file line number Diff line number Diff line change
@@ -2,6 +2,8 @@
'SMS API ile tek mesajın çok kişiye gönderimi örneği
'Aşağıdaki örnek kodu kendinize özelleştirerek kullanabilirsiniz.
' Sunucu IP adresinizi https://oim.verimor.com.tr/sms_settings/edit sayfasından girmiş olmanız gerekir.
' Girmezseniz 401 hatası alırsınız.
username = "xxxx" ' https://oim.verimor.com.tr/sms_settings/edit adresinden öğrenebilirsiniz.
password = "xxxx" ' https://oim.verimor.com.tr/sms_settings/edit adresinden belirlemeniz gerekir.
dest = "905321234567,905321234568"
@@ -20,7 +22,7 @@ jsonString = "{" &_
" }" &_
" ]" &_
"}"
postUrl = "http://sms.verimor.com.tr/v2/send.json"
postUrl = "https://sms.verimor.com.tr/v2/send.json"
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "POST", postUrl, false
xml.setRequestHeader "Content-Type", "application/json"
21 changes: 12 additions & 9 deletions sample_codes/java/src/verimorsms/VerimorSms.java
Original file line number Diff line number Diff line change
@@ -44,23 +44,23 @@ private static SmsIstegi buildRequest()
si.messages = new Mesaj[]{ // Bu metin UTF8 olmalı, değilse 400 hatası alırsınız. Veritabanından alınan string'ler, veritabanı bağlantısının encoding'iyle gelir, UTF8 değilse çevirmeniz gerekir.
new Mesaj("mesajınız","90535xxxxxxx,90532xxxxxxx")
};

return si;
}

private static void sendRequest(SmsIstegi smsIstegi)
{
Gson gson = new Gson();
String payload = gson.toJson(smsIstegi);

try {
URL url = new URL("http://sms.verimor.com.tr/v2/send.json");
URL url = new URL("https://sms.verimor.com.tr/v2/send.json");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setDoOutput(true);
connection.setDoInput(true);
connection.setRequestMethod("POST");
connection.setRequestProperty("Content-Type", "application/json");

OutputStream ostr = connection.getOutputStream();
OutputStreamWriter ostrw = new OutputStreamWriter(ostr, "UTF-8");
ostrw.write(payload);
@@ -89,22 +89,25 @@ private static void sendRequest(SmsIstegi smsIstegi)
ex.printStackTrace();
}
}

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// Sunucu IP adresinizi https://oim.verimor.com.tr/sms_settings/edit sayfasından girmiş olmanız gerekir.
// Girmezseniz 401 hatası alırsınız.

SmsIstegi smsIstegi = buildRequest();
sendRequest(smsIstegi);
}

private static String readStream(InputStream istr) throws IOException {
String result = "";
int c;
while ((c = istr.read()) != -1){
result = result.concat(String.valueOf((char)c));
}

return result;
}
}
}
5 changes: 4 additions & 1 deletion sample_codes/php/cok_mesaj_cok_kisi.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php
// Sunucu IP adresinizi https://oim.verimor.com.tr/sms_settings/edit sayfasından girmiş olmanız gerekir.
// Girmezseniz 401 hatası alırsınız.

// SMS API ile cok mesajın çok kişiye gönderimi örneği (HTTP)
// Aşağıdaki örnek kodu kendinize özelleştirerek kullanabilirsiniz.

@@ -14,7 +17,7 @@ function sendSMS($source_addr, $messages){
"messages" => $messages
);

$ch = curl_init('http://sms.verimor.com.tr/v2/send.json');
$ch = curl_init('https://sms.verimor.com.tr/v2/send.json');
curl_setopt_array($ch, array(
CURLOPT_POST => TRUE,
CURLOPT_RETURNTRANSFER => TRUE,
3 changes: 3 additions & 0 deletions sample_codes/php/cok_mesaj_cok_kisi_https.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php
// Sunucu IP adresinizi https://oim.verimor.com.tr/sms_settings/edit sayfasından girmiş olmanız gerekir.
// Girmezseniz 401 hatası alırsınız.

//SMS API ile cok mesajın çok kişiye gönderimi örneği (HTTPS)
//Aşağıdaki örnek kodu kendinize özelleştirerek kullanabilirsiniz.

5 changes: 4 additions & 1 deletion sample_codes/php/kalan_krediyi_sorgulama.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<?php
// Sunucu IP adresinizi https://oim.verimor.com.tr/sms_settings/edit sayfasından girmiş olmanız gerekir.
// Girmezseniz 401 hatası alırsınız.

// SMS API ile kalan krediyi sorgulama örneği (HTTP)
// Aşağıdaki örnek kodu kendinize özelleştirerek kullanabilirsiniz.

function queryCredits(){
$username="xxxx"; // https://oim.verimor.com.tr/sms_settings/edit adresinden öğrenebilirsiniz.
$password=urlencode("xxxx"); // https://oim.verimor.com.tr/sms_settings/edit adresinden belirlemeniz gerekir.
$url= "http://sms.verimor.com.tr/v2/balance?username=$username&password=$password";
$url= "https://sms.verimor.com.tr/v2/balance?username=$username&password=$password";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$http_response = curl_exec($ch);
3 changes: 3 additions & 0 deletions sample_codes/php/kalan_krediyi_sorgulama_https.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php
// Sunucu IP adresinizi https://oim.verimor.com.tr/sms_settings/edit sayfasından girmiş olmanız gerekir.
// Girmezseniz 401 hatası alırsınız.

// SMS API ile kalan krediyi sorgulama örneği (HTTPS)
// Aşağıdaki örnek kodu kendinize özelleştirerek kullanabilirsiniz.

5 changes: 4 additions & 1 deletion sample_codes/php/tek_mesaj_cok_kisi.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php
// Sunucu IP adresinizi https://oim.verimor.com.tr/sms_settings/edit sayfasından girmiş olmanız gerekir.
// Girmezseniz 401 hatası alırsınız.

// SMS API ile tek mesajın çok kişiye gönderimi örneği (HTTP)
// Aşağıdaki örnek kodu kendinize özelleştirerek kullanabilirsiniz.

@@ -17,7 +20,7 @@ function sendSMS($header, $message, $phones){ $sms_msg = array(
)
)
);
$ch = curl_init('http://sms.verimor.com.tr/v2/send.json');
$ch = curl_init('https://sms.verimor.com.tr/v2/send.json');
curl_setopt_array($ch, array(
CURLOPT_POST => TRUE,
CURLOPT_RETURNTRANSFER => TRUE,
Loading