PHP code example of adityasetiono / app-direct
1. Go to this page and download the library: Download adityasetiono/app-direct 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/ */
adityasetiono / app-direct example snippets
$oauthRequest = new \OAuth('consumer_secret', 'consumer_key', OAUTH_SIG_METHOD_HMACSHA1);
$url = 'http://url.from.appdirect/';
$response = AppDirectRequest::send($url, $oauthRequest->getRequestHeader('GET', $url));