Skip to content

mm580486/kave

Repository files navigation

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 .

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published