Sha256: f0dd4c7231e0d6076779a2b9477f5536602a86e3881738135729dbc0cbc28334
Contents?: true
Size: 968 Bytes
Versions: 2
Compression:
Stored size: 968 Bytes
Contents
# Cequens **Disclaimer:** we are not officially affilated with the Cequens company. A plug-and-play library that make it easier to use with Cequens SMS APIs ## Installation Add this line to your application's Gemfile: ```ruby gem 'cequens' ``` And then execute: $ bundle Or install it yourself as: $ gem install cequens ## Usage configure access token as: $ rails g cequens config ### Send SMS ```ruby params = { "messageText": 'Test from Ahmed', "senderName": 'Cequens', "messageType": 'text', "recipients": '2011111111' } res = Cequens.send_sms(params) # => #<Cequens::Response:0x00007ffd672b29f8 @api_response={"replyCode"=>0, "replyMessage"=>"Request handled successfully", "requestId"=>"64035880-7044-11eb-9f04-11a5522e89a7", "clientRequestId"=>0, "requestTime"=>"2021-02-16T10:47:40.296", "data"=>{"SentSMSIDs"=>[{"SMSId"=>"056ef72a-1497-47be-a4c8-4a7835e071dc"}], "InvalidRecipients"=>""}}> res.success? # => true ```
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cequens-0.0.4 | README.md |
cequens-0.0.3 | README.md |