定制 exileed/inoreader-api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

exileed/inoreader-api

Composer 安装命令:

composer require exileed/inoreader-api

包简介

Inoreader.com api client

README 文档

README

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

A PHP client for authenticating with Inoreader using OAuth and consuming the API.

Install

Via Composer

$ composer require exileed/inoreader-api

Usage

Client Example

use ExileeD\Inoreader\Inoreader;

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


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

$inoreaderClient->setAccessToken($token);

$inoreaderClient->itemsIds();

Access token via Oauth2

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);

Advanced usage

User info

$client->userInfo();

Add subscription

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

$client->addSubscription($url);

Edit subscription

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

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

Unread count

$client->unreadCount():

Subscription list

$client->subscriptionList();

Folders and tags list

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);

Testing

$ ./vendor/bin/phpunit

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 105
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-04-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固