2017 © Pedro Peláez
 

library marketo-rest-api-client

Marketo Rest Api Client

image

generationtux/marketo-rest-api-client

Marketo Rest Api Client

  • Monday, November 6, 2017
  • by kylegferg
  • Repository
  • 10 Watchers
  • 1 Stars
  • 5,506 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 18 % Grown

The README.md

Marketo Rest Api Client

Build Status, (*1)

Installation

composer require generationtux/marketo-rest-api-client, (*2)

Usage

Instantiation

$client = new Client([
    'api_url' => 'foo.bar/api',
    'client_id' => 'foobarid',
    'client_secret' => 'foobarsecret'
]);

Creating a lead

Click here to find all valid fields for leads., (*3)

$client->leads()->create([
    [
      'firstName' => 'Joe',
      'lastName'  => 'Bar',
      'email'     => 'foolead1@bar.com'
    ],
    [
      'firstName' => 'Sally',
      'lastName'  => 'Bar',
      'email'     => 'foolead2@bar.com'
    ]
]);

Getting a lead

$lead = $client->leads()->show('fooemail@bar.com'); // outputs an object with all valid information on the lead

$lead->email; // outputs 'fooemail@bar.com'

Triggering a campaign

To trigger a campaign, provide the campaign id, the email of the lead that will receive the campaign email, and an array of tokens (variables) for the template email belonging to the campaign, (*4)

$client-campaign()
    ->trigger(1234, 'foobar@email.com',
        [
            '{{my.name}}' => 'Foo'
        ]
    );

The Versions

06/11 2017

dev-master

9999999-dev https://github.com/generationtux/marketo-rest-api-client

Marketo Rest Api Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kyle Nieber

api rest marketo generationtux

22/11 2016

v0.0.5

0.0.5.0 https://github.com/generationtux/marketo-rest-api-client

Marketo Rest Api Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kyle Nieber

api rest marketo generationtux

22/11 2016

v0.0.4

0.0.4.0 https://github.com/generationtux/marketo-rest-api-client

Marketo Rest Api Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kyle Nieber

api rest marketo generationtux

21/11 2016

v0.0.3

0.0.3.0 https://github.com/generationtux/marketo-rest-api-client

Marketo Rest Api Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kyle Nieber

api rest marketo generationtux

02/11 2016

v0.0.2

0.0.2.0 https://github.com/generationtux/marketo-rest-api-client

Marketo Rest Api Client

  Sources   Download

MIT

The Requires

 

by Kyle Nieber

api rest marketo generationtux

02/11 2016

0.0.1

0.0.1.0 https://github.com/generationtux/marketo-rest-api-client

Marketo Rest Api Client

  Sources   Download

MIT

The Requires

 

by Kyle Nieber

api rest marketo generationtux