t1mmen/opauth-campaignmonitor

CampaignMonitor strategy for Opauth

0.9 2014-06-24 21:21 UTC

This package is not auto-updated.

Last update: 2024-04-23 00:42:10 UTC


README

Opauth strategy for CampaignMonitor authentication.

This strategy relies on an API endpoint that is currently stable, but undocumented (https://api.createsend.com/api/v3.1/me.json).

Getting started

  1. Install Opauth-CampaignMonitor:

    Using git:

    cd path_to_opauth/Strategy
    git clone https://github.com/t1mmen/opauth-campaignmonitor.git CampaignMonitor

Or, using Composer, just add this to your composer.json:

{
    "require": {
        "t1mmen/opauth-campaignmonitor": "*"
    }
}

Then run composer install.

  1. Create a CampaignMonitor application (see instructions)

  2. Configure Opauth-CampaignMonitor strategy with client_id, client_secret and scope (See permissions)

  3. Direct user to http://path_to_opauth/campaignmonitor to authenticate

Strategy configuration

Required parameters:

<?php
'CampaignMonitor' => array(
  'client_id' => 'YOUR CLIENT ID',
  'client_secret' => 'YOUR CLIENT SECRET',
  'scope' => 'YOUR,SCOPES,HERE'
)

License

Opauth-CampaignMonitor is MIT Licensed Copyright © 2014 Timm Stokke (http://timm.stokke.me)