Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mm580486/kave
https://github.com/mm580486/kave
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mm580486/kave
- Owner: mm580486
- License: mit
- Created: 2016-04-22T14:22:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-15T11:28:05.000Z (over 8 years ago)
- Last Synced: 2024-04-25T03:02:28.403Z (9 months ago)
- Language: Ruby
- Size: 23.4 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this 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
## InstallationAdd this line to your application's Gemfile:
```ruby
gem 'kave'
```And then execute:
```
$ bundle install
```
Or install it yourself(localy) as:
```ruby
$ gem install kave
```
And create init file on config directory(kave.rb):```ruby
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](http://kavenegar.com/) for receive api key !
## Usage
alright ;) now you can call kave function for send simply sms by loginfo or api key```ruby
class HomeController < ApplicationController
def indexrequest=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](https://twitter.com/mm580486)
## persian tutorials
1-[youtube send simply sms by kave gem](https://youtu.be/NXLnFwNJoC0)
2-[callback status code](http://kavenegar.com/public/documents/soap-document.pdf)
## LicenseThe gem is available as open source under the terms of the [mohammad mahmoudi](https://twitter.com/mm580486) and [kave negar](http://kavenegar.com/support/about) .