PHP code example of richardhj / oauth2-epost
1. Go to this page and download the library: Download richardhj/oauth2-epost library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
richardhj / oauth2-epost example snippets
$provider = new EPost\OAuth2\Client\Provider\EPost(
[
'clientId' => sprintf('%s,%s', EPOST_DEV_ID, EPOST_APP_ID),
'redirectUri' => 'http://localhost:8080/oauth2_redirect.php', // Only necessary for the Authorization Code Grant flow
'scopes' => ['create_letter', 'send_hybrid'],
'lif' => EPOST_LIF_CONTENT,
'enableTestEnvironment' => true,
]
);