Project

kave

0.0
No commit activity in last 3 years
No release in over 3 years
Send SMS by kavenegar services in iran
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.10
~> 10.0

Runtime

~> 2.0
 Project Readme

Kave

Kave negar offering advance sms Service for developer's , you can send & receive sms in often services and app ! notice: this service only work in iran country

Installation

Add this line to your application's Gemfile:

gem 'kave'

And then execute:

$ bundle install

Or install it yourself(localy) as:

$ gem install kave

And create init file on config directory(kave.rb):

Kave.configure do |config|
  config.wsdl ='http://api.kavenegar.com/soap/v1.asmx?WSDL'
  config.sender  = 'number'

# You can use api key or username and password for authinticate 
  config.api_key = 'api key'
# OR
  config.username = 'kave username'
  config.password = 'kave password'
end

kavenegar.com for receive api key !

Usage

alright ;) now you can call kave function for send simply sms by loginfo or api key

class HomeController < ApplicationController
  def index

  	request=Kave::SendRequestSimple.new({
   
    message: 'سلام عزیز :)',
    mobile: '09127105568',
    #optional
    unixdate: by default 0 ,
    msgmode: by default 1
})

  	res=request.call
  	render :text=>{status_message_only_farsi: res.statusmessage,status_code: res.status}
  end
end

for report issues contact me on twitter @mm580486

persian tutorials

1-youtube send simply sms by kave gem

2-callback status code

License

The gem is available as open source under the terms of the mohammad mahmoudi and kave negar .