Skip to content

OAuth 2.0 Client Provider for E-POSTBUSINESS API.

License

Notifications You must be signed in to change notification settings

LubeyAG/oauth2-epost

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-POSTBUSINESS Provider for OAuth 2.0 Client

Latest Version on Packagist Software License Dependency Status

This package provides E-POSTBUSINESS API OAuth 2.0 support for the PHP League's OAuth 2.0 Client.

Install

Via Composer

$ composer require richardhj/oauth2-epost

Usage

The provider supports Authorization Code Grant as well as Resource Owner Password Credentials Grant. I recommend reading these usage instructions before: https://github.com/thephpleague/oauth2-client#usage But instead of the GenericProvider you're going to use this provider.

This is how to initiate the provider:

$provider = new EPost\OAuth2\Client\Provider\EPost(
    [
        'clientId'              => sprintf('%s,%s', EPOST_DEV_ID, EPOST_APP_ID),
        'redirectUri'           => 'https://localhost:8080/oauth2_redirect.php', // Only necessary for the Authorization Code Grant flow
        'scopes'                => ['create_letter', 'send_hybrid'],
        'lif'                   => EPOST_LIF_CONTENT,
        'enableTestEnvironment' => true,
    ]
);

License

The GNU Lesser General Public License (LGPL).

About

OAuth 2.0 Client Provider for E-POSTBUSINESS API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%