PHP code example of adampatpattison / app-direct-wrapper

1. Go to this page and download the library: Download adampatpattison/app-direct-wrapper 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/ */

    

adampatpattison / app-direct-wrapper example snippets


$oauthRequest = new \OAuth('consumer_secret', 'consumer_key', OAUTH_SIG_METHOD_HMACSHA1);
$eventUrl = 'http://url.from.appdirect/';
$response = \adampatpattison\AppDirectWrapper\AppDirectRequest::send($eventUrl, $oauthRequest->getRequestHeader('GET', $eventUrl));