2017 © Pedro Peláez
 

apiclient marketo-soap-api-php-client

Marketo SOAP API PHP Client

image

elcodedocle/marketo-soap-api-php-client

Marketo SOAP API PHP Client

  • Wednesday, January 31, 2018
  • by elcodedocle
  • Repository
  • 2 Watchers
  • 0 Stars
  • 152 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

Marketo SOAP API PHP (micro-) Client

Copyright (C) 2014-2016 Gael Abadinbr/ License: [MIT Expat][1]
Version: 0.4.0-beta
Build Status
Code Climate, (*1)

Unofficial PHP client for the Marketo.com SOAP API: http://developers.marketo.com/documentation/soap/. Requires PHP 5.3.0+ with the SOAP extension enabled (and cURL extension for SSL support), (*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 elcodedocle/marketo-soap-api-php-client

Alternatively, you can simply add MarketoSoapClient.php to your project., (*4)

Usage example

Create a MarketoSoapApiClient object:, (*5)

require_once 'route/to/MarketoSoapApiClient.php';

use CodeCrafts\MarketoSoap\MarketoSoapApiClient;

// replace with your Marketo soap endpoint (without ?WSDL at the end)
$soapEndpoint = 'https://<YOUR-MUNCHKIN-ID>.mktoapi.com/soap/mktows/2_2';

try {
    $marketoSoapApiClient = new MarketoSoapApiClient(
        '<YOUR-MARKETO-API-USER-ID>',
        '<YOUR-MARKETO-SECRET-KEY>',
        new SoapClient(
            $soapEndpoint."?WSDL",
            MarketoSoapApiClient::buildOptionsArray($soapEndpoint)
        )
    );
} catch (SoapFault $ex){
    // Error connecting to Marketo SOAP Endpoint
    // ...
}

Invoke any of the implemented methods, e.g.:, (*6)

$leadCookie = ''; // fill in with some lead cookie value you want to test

var_export(
    $marketoSoapApiClient->getLeadBy(
        'COOKIE',
        $leadCookie
    )
);

will echo the processed lead obtained for $leadCookie., (*7)

(Check the phpdoc on MarketoSoapApiClientInterface.php for info on the implemented methods and their parameters), (*8)

TODO:

  • Implement wrappers for all the missing methods. (This API implements wrappers for only 5 out of the 23 methods marketo SOAP API provides: getLead, syncLead, getCampaignsForSource, requestCampaign and scheduleCampaign. I don't need to use any more methods right now, but I'll be implementing more as I need them, and any requests will be considered and implemented in order of popularity, so don't hessitate on opening/+1 a ticket or a pull request if you like this code and would like to request some particular extension or implement one yourself and have it merged into this project).

Acks

Ben Ubois, the developer behind Marketo, "A PHP client for the Marketo SOAP API", (*9)

Enjoy!, (*10)

(, (*11)

bitcoin: 1DMD3ymSTKoe16kNme87UnYcrXyZdkWSjD, (*12)

dogecoin: D9jDo3XPyALJH63N39wct6eDSeaL4ba5QB, (*13)

paypal: http://goo.gl/28iuK3, (*14)

), (*15)

The Versions

31/01 2018

dev-PHP_5.2_Compatible

dev-PHP_5.2_Compatible https://github.com/elcodedocle/marketo-soap-api-php-client

Marketo SOAP API PHP Client

  Sources   Download

MIT MIT-Expat

The Requires

  • php >=5.3.0

 

The Development Requires

api client soap marketo marketo soap api marketo api

31/01 2018

dev-master

9999999-dev https://github.com/elcodedocle/marketo-soap-api-php-client

Marketo SOAP API PHP Client

  Sources   Download

MIT MIT-Expat

The Requires

  • php >=5.3.0

 

The Development Requires

api client soap marketo marketo soap api marketo api

31/01 2018

0.4.0

0.4.0.0 https://github.com/elcodedocle/marketo-soap-api-php-client

Marketo SOAP API PHP Client

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

api client soap marketo marketo soap api marketo api

08/08 2016

0.3.0-beta

0.3.0.0-beta https://github.com/elcodedocle/marketo-soap-api-php-client

Marketo SOAP API PHP Client

  Sources   Download

MIT-Expat

The Requires

  • php >=5.3.0

 

The Development Requires

api client soap marketo marketo soap api marketo api

29/07 2014

0.2.0-beta

0.2.0.0-beta https://github.com/elcodedocle/marketo-soap-api-php-client

Marketo SOAP API PHP Client

  Sources   Download

MIT-Expat

The Requires

  • php >=5.3.0

 

The Development Requires

api client soap marketo marketo soap api marketo api