2017 © Pedro Peláez
 

library oauth2-marketo

Marketo OAuth 2.0 support for the PHP League's OAuth2-Client

image

kristenlk/oauth2-marketo

Marketo OAuth 2.0 support for the PHP League's OAuth2-Client

  • Monday, October 3, 2016
  • by kristenlk
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,147 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

Marketo Provider for OAuth 2.0 Client

Latest Version Software License Build Status Coverage Status Quality Score VersionEye Total Downloads, (*1)

This package provides Marketo OAuth 2.0 support for the PHP League's OAuth 2.0 Client., (*2)

Installation

To install, use composer:, (*3)

composer require kristenlk/oauth2-marketo

Usage

Usage is the same as The League's OAuth client, using \Kristenlk\OAuth2\Client\Provider\Marketo as the provider., (*4)

Authorization Code Flow

Marketo's REST APIs are authenticated with two-legged OAuth 2.0. We don't need to pass a redirectUri to the provider, but we do need to include a base url that will be used to request an access token., (*5)

<?php
$provider = new \Kristenlk\OAuth2\Client\Provider\Marketo([
    'clientId'          => '{marketo-client-id}',
    'clientSecret'      => '{marketo-client-secret}',
    'baseUrl'           => 'https://your-base-url.mktorest.com'
]);

// Try to get an access token (using the client credentials grant)
$token = $provider->getAccessToken('client_credentials');

// Use this to interact with an API on the users behalf
echo $token->getToken();


If the access token expires, we can just call getAccessToken() again., (*6)

Testing

bash $ ./vendor/bin/phpunit, (*7)

Contributing

Please see CONTRIBUTING for details., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

03/10 2016

dev-master

9999999-dev

Marketo OAuth 2.0 support for the PHP League's OAuth2-Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kristen Kehlenbeck

authentication authorization oauth sso oauth2 identity idp single sign on marketo marketo api

03/10 2016

v1.5

1.5.0.0

Marketo OAuth 2.0 support for the PHP League's OAuth2-Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kristen Kehlenbeck

authentication authorization oauth sso oauth2 identity idp single sign on marketo marketo api

03/10 2016

v1.4

1.4.0.0

Marketo OAuth 2.0 support for the PHP League's OAuth2-Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kristen Kehlenbeck

authentication authorization oauth sso oauth2 identity idp single sign on marketo marketo api

03/10 2016

v1.2

1.2.0.0

Marketo OAuth 2.0 support for the PHP League's OAuth2-Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kristen Kehlenbeck

authentication authorization oauth sso oauth2 identity idp single sign on marketo marketo api

30/09 2016

v1.1

1.1.0.0

Marketo OAuth 2.0 support for the PHP League's OAuth2-Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kristen Kehlenbeck

authentication authorization oauth sso oauth2 identity idp single sign on marketo marketo api

27/09 2016

v1.0

1.0.0.0

Marketo OAuth 2.0 support for the PHP League's OAuth2-Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kristen Kehlenbeck

authentication authorization oauth sso oauth2 identity idp single sign on slack slack api