PHP code example of adrifkat / cryptopanic

1. Go to this page and download the library: Download adrifkat/cryptopanic 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/ */

    

adrifkat / cryptopanic example snippets



$client = new \Adrifkat\Cryptopanic\Client('<AUTH_TOKEN>');
$postsResponse = $client->getPostsRequest()
	->setCurrencies(['BTC', 'XRP'])
	->setFilter('bearish')
	->send();
	
$portfolioResponse = $client->send();