Created
February 24, 2020 08:23
-
-
Save hakanersu/5ee408ecd25fdafa041f7c635b1ae350 to your computer and use it in GitHub Desktop.
Bulutfon Ruby ile SMS gönderimi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require 'rest-client' | |
url = 'http://api.bulutfon.com/v2/sms/messages?apikey=APIKEY' | |
payload = { | |
title: "FIRMA", | |
content: "Hesabınıza girişte kullanacağınız kod: xxxx", | |
"receivers": ["905xxxxxxxx"], | |
"reject_link": true, | |
"send_date": "null" | |
} | |
response = RestClient.post(url, payload) | |
puts JSON.parse(response) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment