2017 © Pedro Peláez
 

library oauth2-newsletter2go

Newsletter2Go OAuth 2.0 Client Provider for The PHP League OAuth2-Client

image

richardhj/oauth2-newsletter2go

Newsletter2Go OAuth 2.0 Client Provider for The PHP League OAuth2-Client

  • Wednesday, February 7, 2018
  • by richardhj
  • Repository
  • 1 Watchers
  • 0 Stars
  • 400 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 15 % Grown

The README.md

Newsletter2Go Provider for OAuth 2.0 Client

Latest Version on Packagist ![Software License][ico-license] Dependency Status, (*1)

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

Install

Via Composer, (*3)

``` bash $ composer require richardhj/oauth2-newsletter2go, (*4)


## Usage Use the auth key from your Newsletter2Go account to initiate the provider. ```php $provider = new Richardhj\Newsletter2Go\OAuth2\Client\Provider\Newsletter2Go([ 'authKey' => $authKey, ]);

Then use your login credentials to fetch an AccessToken instance., (*5)

$accessToken = $provider->getAccessToken(
    'https://nl2go.com/jwt',
    [
        'username' => $username,
        'password' => $password,
    ]
);

Refreshing a token

Initiate the provider as described before. Then:, (*6)

$accessToken = $provider->getAccessToken(
    'https://nl2go.com/jwt_refresh',
    [
        'refresh_token' => $accessToken->getRefreshToken()
    ]
);

It is recommended to save the refresh_token ($refreshToken = $accessToken->getRefreshToken()) in your application rather than the username and password. Nevertheless: Handle with care!, (*7)

Visit the official API documentation for reference., (*8)

License

The GNU Lesser General Public License (LGPL)., (*9)

The Versions

07/02 2018

dev-master

9999999-dev

Newsletter2Go OAuth 2.0 Client Provider for The PHP League OAuth2-Client

  Sources   Download

LGPL-3.0+ LGPL-3.0-or-later

The Requires

 

authorization oauth client oauth2 authorisation newsletter2go

07/02 2018

v2.0.x-dev

2.0.9999999.9999999-dev

Newsletter2Go OAuth 2.0 Client Provider for The PHP League OAuth2-Client

  Sources   Download

LGPL-3.0-or-later

The Requires

 

authorization oauth client oauth2 authorisation newsletter2go

07/02 2018

v2.0.0

2.0.0.0

Newsletter2Go OAuth 2.0 Client Provider for The PHP League OAuth2-Client

  Sources   Download

LGPL-3.0-or-later

The Requires

 

authorization oauth client oauth2 authorisation newsletter2go

13/10 2017

dev-feautre/v2.0.0

dev-feautre/v2.0.0

Newsletter2Go OAuth 2.0 Client Provider for The PHP League OAuth2-Client

  Sources   Download

LGPL-3.0+

The Requires

 

authorization oauth client oauth2 authorisation newsletter2go

09/03 2017

v1.0.1

1.0.1.0

Newsletter2Go OAuth 2.0 Client Provider for The PHP League OAuth2-Client

  Sources   Download

LGPL-3.0+

The Requires

 

authorization oauth client oauth2 authorisation newsletter2go

09/03 2017

v1.0.x-dev

1.0.9999999.9999999-dev

Newsletter2Go OAuth 2.0 Client Provider for The PHP League OAuth2-Client

  Sources   Download

LGPL-3.0+

The Requires

 

authorization oauth client oauth2 authorisation newsletter2go

27/08 2016

v1.0.0

1.0.0.0

Newsletter2Go OAuth 2.0 Client Provider for The PHP League OAuth2-Client

  Sources   Download

LGPL-3.0+

The Requires

 

authorization oauth client oauth2 authorisation newsletter2go