Skip to content

Instantly share code, notes, and snippets.

@hakanersu
Created February 24, 2020 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hakanersu/5ee408ecd25fdafa041f7c635b1ae350 to your computer and use it in GitHub Desktop.
Save hakanersu/5ee408ecd25fdafa041f7c635b1ae350 to your computer and use it in GitHub Desktop.
Bulutfon Ruby ile SMS gönderimi
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