0.0
No commit activity in last 3 years
No release in over 3 years
This gem is Ruby interface to the Polkomtel's MultiInfo SMS gateway service, based on Luke Redpath's clickatel library. To use this gem, you will need an access to Polkomtel's MultiInfo service. You need user, password, sercvice_id and certificate for ssl connection. Contact Polkomtel sales reps for info how to obtain acces to MultiInfo service.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 2.0.0
 Project Readme

Polkomtel MultiInfo HTTPS API wrapped into Ruby library¶ ↑

This gem is Ruby interface to the Polkomtel’s MultiInfo SMS gateway service, based on Luke Redpath’s clickatel library To use this gem, you will need an access to Polkomtel’s MultiInfo service. You need user, password, sercvice_id and certificate for ssl connection. Contact Polkomtel sales reps for info how to obtain acces to MultiInfo service.

Basic Usage¶ ↑

You will need your Mutliinfo credentials and SSL certificate to use this library.

require 'rubygems'
require 'multiinfo'

api = MultiInfo::API.new

# Example api calls
api.send_message('48661351024', 'Hello') # sends sms 'Hello' to 48 661 351 024 and returns message id
api.message_info('22') # gets info about message with id 22

Conifguration options¶ ↑

Default path for config file and certificate files is $HOME/multiinfo. You should place following files in that directory:

multiinfo.yml # config file
multiinfo.crt # certificate
multiinfo.pem # RSA key

In multiinfo.yml you should specify at least:

login
password
service_id

If you want to use different names for certificate files speciify them with FULL PATH in config file under:

client_cert
client_key

You will probably also need to add Multiinfo Root Certificate to your trusted certificates chain. To mark a certificate as trusted, specify it in your multiinfo.yml file (you can provide either a filename or a directory). You can also use ‘default’ to let the application use the default certificates path.

See example in config_example.yml

To load your custom config file use following code

require 'rubygems'
require 'multiinfo'

config = MultiInfo::API.load_auth_options(CONFIG_FILE_FULL_PATH)
api = MultiInfo::API.new(config)