Socket
Book a DemoInstallSign in
Socket

iletimerkezi_sdk

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iletimerkezi_sdk

1.0.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

İleti Merkezi Ruby SDK

Bu SDK, İleti Merkezi API'si ile etkileşimde bulunmak için Ruby dilinde yazılmış bir istemci sağlar.

Kurulum

Bu SDK'yı kullanmak için Ruby 2.6 veya daha üst bir sürümüne sahip olmalısınız. Aşağıdaki adımları izleyerek SDK'yı kurabilirsiniz:

Gemfile Kullanarak Kurulum

Eğer Bundler kullanıyorsanız, Gemfile dosyanıza aşağıdaki satırı ekleyin:

gem 'iletimerkezi_sdk', git: 'https://github.com/iletimerkezi/iletimerkezi-ruby.git'

Ardından terminalde aşağıdaki komutu çalıştırın:

bundle install

Manuel Kurulum

Eğer Bundler kullanmıyorsanız, gem'i manuel olarak kurabilirsiniz:

gem install iletimerkezi_sdk

Kullanım

SDK'yı kullanmaya başlamak için aşağıdaki örneği inceleyebilirsiniz:

İleti Merkezi İstemcisini Başlatın

require 'iletimerkezi_sdk'

client = IletiMerkeziSdk::Client.new(
  api_key: 'YOUR_API_KEY',
  api_hash: 'YOUR_API_HASH',
  default_sender: 'YOUR_DEFAULT_SENDER'
)

SMS Gönderme Örneği

response = client.sms.send('50570xxxxx', 'Merhaba Dünya!')
if response.ok?
  puts "SMS başarıyla gönderildi! Sipariş ID: #{response.order_id}"
else
  puts "Hata: #{response.error_message}"
end

Rapor Alma Örneği

response = client.report.get(order_id: 'ORDER_ID')
if response.ok?
  puts "Rapor başarıyla alındı!"
  puts "Durum: #{response.status}"
else
  puts "Hata: #{response.error_message}"
end

Desteklenen Versiyonlar

Bu SDK, aşağıdaki Ruby sürümlerini desteklemektedir:

  • Ruby 2.6
  • Ruby 2.7
  • Ruby 3.0
  • Ruby 3.1

FAQs

Package last updated on 09 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.