PHP code example of exileed / inoreader-api

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

    

exileed / inoreader-api example snippets



use ExileeD\Inoreader\Inoreader;

$apiKey = 1000000;
$apiSecret = 'xxxx';
$token = 'ssss';


$inoreaderClient = new Inoreader( $apiKey, $apiSecret );

$inoreaderClient->setAccessToken($token);

$inoreaderClient->itemsIds();


use ExileeD\Inoreader\Inoreader;

$apiKey = 1000000;
$apiSecret = 'xxxx';


$client = new Inoreader( $apiKey, $apiSecret );
$redirectUrl = 'http://localhost';
$scope = 'test';

$client->getLoginUrl($redirectUrl, $scope);

$client->accessTokenFromCode('code', $redirectUrl);

// Access token from refresh token
$client->accessTokenFromCode('code', $redirectUrl);

$client->userInfo();

$url = 'https://www.inoreader.com/blog/feed';

$client->addSubscription($url);

$url = 'feed/https://www.inoreader.com/blog/feed';

$client->editSubscription(['ac' => 'edit', 's' => $url, 't' => 'test']));

$client->unreadCount():

$client->subscriptionList();

use ExileeD\Inoreader\Objects\Tag;

$type = Tag::TYPE_ITEM;
//$type = Tag::TYPE_TAG;
//$type = Tag::TYPE_FOLDER;
//$type = Tag::TYPE_ACTIVE_SEARCH;

$client->tagsList($type, $count);