MyMarketing - the Ruby gem for the MyMarketing Notifications
Virtuoso MyMarketing Notification API
This SDK is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.RubyClientCodegen
To build the Ruby code into a gem:
gem build my_marketing.gemspec
Then either install the gem locally:
gem install ./my_marketing-1.0.0.gem
(for development, run gem install --dev ./my_marketing-1.0.0.gem
to install the development dependencies)
or publish the gem to a gem hosting service, e.g. RubyGems.
Finally add this to the Gemfile:
gem 'my_marketing', '~> 1.0.0'
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
gem 'my_marketing', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
Include the Ruby code directly using -I
as follows:
ruby -Ilib script.rb
Please follow the installation procedure and then run the following code:
# Load the gem
require 'my_marketing'
api_instance = MyMarketing::ConsumerApi.new
body = MyMarketing::ConsumerCreate.new # ConsumerCreate | Create a consumer record
begin
#Create a consumer
result = api_instance.consumers_post(body)
p result
rescue MyMarketing::ApiError => e
puts "Exception when calling ConsumerApi->consumers_post: #{e}"
end
All URIs are relative to https://virtserver.swaggerhub.com/cgseattle/Notification/1.0.0
Class | Method | HTTP request | Description |
---|---|---|---|
MyMarketing::ConsumerApi | consumers_post | POST /consumers | Create a consumer |
MyMarketing::ConsumerApi | consumers_virtuoso_id_put | PUT /consumers/{virtuosoId} | Update a consumer |
MyMarketing::LoginApi | login_get | GET /login | Authentication |
MyMarketing::NotificationApi | notifications_post | POST /notifications | Queue a notification |
- MyMarketing::ConsumerCreate
- MyMarketing::ConsumerResponse
- MyMarketing::ConsumerResult
- MyMarketing::ConsumerUpdate
- MyMarketing::CustomData
- MyMarketing::LoginResponse
- MyMarketing::LoginResult
- MyMarketing::Notification
- MyMarketing::NotificationResponse
All endpoints do not require authorization.