2017 © Pedro Peláez
 

library marketo-rest-client

A PHP client for the Marketo.com REST API

image

david-evans/marketo-rest-client

A PHP client for the Marketo.com REST API

  • Friday, March 30, 2018
  • by David-Evans
  • Repository
  • 1 Watchers
  • 0 Stars
  • 29 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 46 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

Marketo REST API Client

Unofficial PHP client for the Marketo.com REST API: http://developers.marketo.com/documentation/rest/. Requires PHP 5.3.3+, (*2)

Installation

The recommended way of installing the client is via Composer. Simply run the following command to add the library to your composer.json file., (*3)

composer require david-evans/marketo-rest-client

Setup

The client is built on Guzzle 3 and uses a factory method to create an instance. You must specify either a Munchkin ID or the full url., (*4)

For Rest Api access:

use CSD\Marketo\Client;

$client = Client::factory(array(
    'client_id' => 'Marketo client ID',         // required
    'client_secret' => 'Marketo client secret', // required
    'munchkin_id' => '100-AEK-913' // alternatively, you can supply the full URL, e.g. 'url' => 'https://100-AEK-913.mktorest.com'
));

For Bulk Api access:

use CSD\Marketo\Client;

$client = Client::factory(array(
    'client_id' => 'Marketo client ID',         // required
    'client_secret' => 'Marketo client secret', // required
    'munchkin_id' => '100-AEK-913' // alternatively, you can supply the full URL, e.g. 'url' => 'https://100-AEK-913.mktorest.com'
    'bulk' => true // if uploading leads via file upload (e.g. csv)
));

Usage

View the source of src/Client.php for all the available methods., (*5)

Contributing

Please create pull requests. Hopefully pull requests will be reviewed within a couple of days. In general don't merge your own pull requests. Operations will be available with just the addition of a the operation in the service.json file as long as you are using $client->getFoo()->getResult() but most of the operations have their own access methods with simplified argument handling. Operations do not need to have their own response class unless it does something special. Please respect semantic versioning in this project. That means no break in backwards compatibility unless a major version change is being planned., (*6)

Example of the simplest addition of a new operation:, (*7)

{
    "operations": {
        "getFoo": {
            "httpMethod": "GET",
            "uri": "foo.json",
            "parameters": {},
            "responseModel": "baseResponse",
            "responseClass": "CSD\\Marketo\\Response"
        },
}

License

This source is licensed under an MIT License, see the LICENSE file for full details. If you use this code, it would be great to hear from you., (*8)

The Versions

30/03 2018

dev-master

9999999-dev

A PHP client for the Marketo.com REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Evans

30/03 2018

v0.0.6

0.0.6.0

A PHP client for the Marketo.com REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Evans

25/10 2016

dev-issue12_delete_objects

dev-issue12_delete_objects

A PHP client for the Marketo.com REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

02/12 2015

v0.0.5

0.0.5.0

A PHP client for the Marketo.com REST API

  Sources   Download

MIT

The Requires

 

29/04 2015

v0.0.4

0.0.4.0

A PHP client for the Marketo.com REST API

  Sources   Download

MIT

The Requires

 

03/02 2015

v0.0.3

0.0.3.0

A PHP client for the Marketo.com REST API

  Sources   Download

MIT

The Requires

 

23/12 2014

v0.0.2

0.0.2.0

A PHP client for the Marketo.com REST API

  Sources   Download

MIT

The Requires

 

12/11 2014

v0.0.1

0.0.1.0

A PHP client for the Marketo.com REST API

  Sources   Download

MIT

The Requires