Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Latest commit

 

History

History
29 lines (20 loc) · 629 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 629 Bytes

Gangway

ENV Variables

Gangway requires eWay credentials in the .env file

EWAY_USERNAME=username
EWAY_PASSWORD=password

Usage example

require 'gangway'

# add a user
Gangway::Subscriber.add({email: 'test@user.com',
                         subscriber_data: {first_name: 'Test', last_name: 'User'}, handler_id: 1})

# get subscriber data
Gangway::Subscriber.get({email: 'test@user.com'})

# get subscription status
Gangway::Subscriber.subscription_status({email: 'test@user.com'})

# change user's email
Gangway::Subscriber.change_email({old_email: 'old@user.com', new_email: 'new@user.com'})