A simple ruby wrapper for skipio api
gem install skipio_api
require 'skipio'
Usage
service = Skipio.new({ token: Rails.application.secrets.skipio_api, params: @options, api_server: :dev })
# api server defaults on dev
Contact List
service.contact_list(options) # options = { page: 1, per: 10 }
Find Contact
service.find_contact(id) #=> contact_id
Send Message
service.send_message(options) # => { recipients: 'Comma Separated User UUID', message: 'body message' }
by url
action = :get or :post
url = 'v1/contacts'
options = { params: { Hash: parameters }, json: { Hash: json } }
service.process_by_url(url, action, options)