Skip to content

Client gem for the ENS API to Engaging Networks

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

controlshift/engaging-networks-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

88d97ad · Oct 17, 2023

History

40 Commits
Oct 17, 2023
Oct 17, 2023
Oct 17, 2023
Mar 23, 2021
Jul 23, 2021
Dec 6, 2018
Oct 17, 2023
Oct 17, 2023
Oct 17, 2023
Dec 6, 2018
Oct 13, 2023
Oct 16, 2023
Oct 17, 2023
Oct 17, 2023
Oct 17, 2023
Mar 23, 2021

Repository files navigation

engaging-networks-rest

Client gem for the ENS API to Engaging Networks

CI Status

Install

gem install engaging-networks-rest

Usage

client = EngagingNetworksRest.new(api_key: 'YOUR API KEY HERE', host: 'us.engagingnetworks.app')

# get pages by type
pages = client.pages(type: 'dcf', status: 'live')

# process a page request
response = client.process_page_request(page_id: 12345, body: {supporter: {first_name: 'Alice'}})

The client will call authentication endpoint behind the scenes the first time it makes a request. Currently, it does not attempt to check if its token is still valid for later requests. It is possible to force re-authentication with client.authenticate!.