https://github.com/jalkoby/uni_sender_gem
Gem that provides api for unisender.com.ua
https://github.com/jalkoby/uni_sender_gem
Last synced: 8 months ago
JSON representation
Gem that provides api for unisender.com.ua
- Host: GitHub
- URL: https://github.com/jalkoby/uni_sender_gem
- Owner: jalkoby
- Created: 2011-09-08T21:21:55.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2017-01-17T14:06:19.000Z (over 9 years ago)
- Last Synced: 2025-04-03T04:41:37.562Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 18.6 KB
- Stars: 4
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.rdoc
Awesome Lists containing this project
README
= UniSender
{
}[https://travis-ci.org/jalkoby/uni_sender_gem]
uni_sender gem provides full dev kit to access to api of unisender.com.ua. It uses method_missing method to provide flexible functionality, so all methods will return hash that represents responce of server.
== Installation
If you use bundler then add this
gem 'uni_sender'
Or you can install it via gem command
gem install uni_sender
== Getting Started
Gem provide class UniSender::Client for accessing server's api. For creating client you need you personal key
client = UniSender::Client.new('your secret key')
Gem provides non-sensitive style, so action getLits will equal to get_lists or Get_Lists
By default gem use english version of api. But you can change to another.
UniSender::Client.new('api key', 'ru') #use russian language
If api action requires some params you can pass them via hash
UniSender::Client.new('api key').import_contacts(:field_names => [ "email", "email_list_ids" ], :data => {0 => ["test@example.com", "123"] })
== Dependencies
That gem supports ruby 1.8+
== Wikis
For more information about actions and returned answers please visit:
* {UniSender Api list}[http://unisender.com.ua/help/api]