Example code describing how to use the Audiomack API.
- Example 1:
php-auth
uses thepear/http_oauth
composer package available from https://github.com/pear/HTTP_OAuth (PHP) - Example 2:
php-risan
uses therisan/oauth1
composer package available from https://github.com/risan/oauth1 (PHP)
To run the authentication example on your development machine, you can do the following:
cd php-auth
composer install
- php -S localhost:3030
- Visit http://localhost:3030/ in your browser
- Run
composer update
to avoid Depreciation errors - add
set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__ .'/vendor/pear/http_request2');
to config.php to avoidWarning: require_once(HTTP/Request2.php): Failed to open stream: No such file or directory in
error.