2017 © Pedro Peláez
 

library convertkit-api

WordPress API client for ConvertKit API v3

image

calderawp/convertkit-api

WordPress API client for ConvertKit API v3

  • Wednesday, August 9, 2017
  • by Shelob9
  • Repository
  • 1 Watchers
  • 3 Stars
  • 110 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 6 % Grown

The README.md

ConvertKit API

WordPress API client for ConvertKit API v3, (*1)

This library was developed for use in our ConvertKit for Caldera Forms plugin. It is provided here for other developers to use to build their own intergrations., (*2)

For full API docs, see http://kb.convertkit.com/article/api-documentation-v3/, (*3)

Requires PHP 5.3 or later., (*4)

Installation

composer require calderawp/convertkit-api, (*5)

Examples

Get all forms:

    use calderawp\convertKit\forms;

    $client = new forms( $api_key );
    $forms = $client->get_all();

Get all sequences:

    use calderawp\convertKit\sequences;

    $client = new sequences( $api_key );
    $sequences = $client->get_all();

Add a subscriber to a form:

    use calderawp\convertKit\forms


    $name = 'Hi Roy';
    $client = new forms( $api_key );
    $form = $client->get( $name );
    if( $form ) {
        $client->add( $form->id, [ 'email' => 'roy@roysivan.com' ] );

    }

Add a subscriber to a sequence:

    use calderawp\convertKit\sequences;

    $name = 'Hi Roy';
    $client = new forms( $api_key );
    $sequence = $client->get( $name );
    if( $sequence ) {
        $client->add( $sequence->id, [ 'email' => 'roy@roysivan.com' ] );

    }

License, Copyright, Etc.

Copyright 2016 Josh Pollock for CalderaWP LLC. License under the terms of the GPL v2 or later. Some copypasta from https://github.com/ConvertKit/ConvertKit-WordPress/blob/master/lib/convertkit-api.php which is GPL :), (*6)

The Versions

09/08 2017

dev-master

9999999-dev

WordPress API client for ConvertKit API v3

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

wordpress

27/06 2017

0.1.3

0.1.3.0

WordPress API client for ConvertKit API v3

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

wordpress

21/06 2017

0.1.2

0.1.2.0

WordPress API client for ConvertKit API v3

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

wordpress

17/06 2016

0.1.1

0.1.1.0

WordPress API client for ConvertKit API v3

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

wordpress

14/06 2016

0.1.0

0.1.0.0

WordPress API client for ConvertKit API v3

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

wordpress