Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

campaign_monitor_party

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

campaign_monitor_party

  • 0.2.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Campaign Monitor Party

Lightweight wrapper for Campaign Monitor API over HTTP using HTTParty.

About

This is a very simple class that utilizes HTTParty -- a wonderful gem for consuming REST APIs. The code here is only about 20 lines or so; HTTParty does all the hard work.

Installation

sudo gem install campaign_monitor_party -s http://gemcutter.org

Usage

First, familiarize yourself with the API documentation here: http://www.campaignmonitor.com/api/

require 'rubygems'
require 'campaign_monitor_party'

API_KEY = '...'

cm = CampaignMonitorParty.new(API_KEY)

# The wrapper uses method_missing to accept any method supported by the HTTP API (now or in the future).
# For instance, the method "Subscriber.Add" is called with the code below.

cm.Subscriber.Add(
  'ListID' => '...',
  'Email'  => 'tim@timmorgan.org',
  'Name'   => 'Tim Morgan'
)

# 'ApiKey' is passed in automatically for each method call.
# Other arguments should be passed as a hash to the method.

FAQs

Package last updated on 20 Oct 2009

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc