<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Reeder on opoojkk</title><link>https://opoojkk.com/tags/reeder/</link><description>Recent content in Reeder on opoojkk</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Thu, 05 Dec 2024 07:53:41 +0800</lastBuildDate><atom:link href="https://opoojkk.com/tags/reeder/index.xml" rel="self" type="application/rss+xml"/><item><title>FreshRSS API使用指南</title><link>https://opoojkk.com/posts/2024/12/05/freshrss-api/</link><pubDate>Thu, 05 Dec 2024 07:53:41 +0800</pubDate><guid>https://opoojkk.com/posts/2024/12/05/freshrss-api/</guid><description>&lt;p>不喜欢新闻客户端里带有政治倾向和无关紧要的娱乐新闻，诸如某某明星跌倒之类。日常都用rss阅读，可以阅读我常看的内容，FreshRSS又是可以自己部署的非常好用的服务，理所当然的用上了。&lt;/p>
&lt;p>最近组了一台主机，重新安装FreshRSS之后总是也在reeder（iOS平台RSS阅读软件）上配置不了，记录一下。&lt;/p>
&lt;p>Docker一种容器化技术，每一个容器都有一个端口，要通过ip:port的形式访问，互相之间是隔离的，当然也是有通讯的方式的。&lt;/p>
&lt;p>拿我的情况举例，我的ip是：192.168.1.10，端口是80，访问FreshRSS的地址就是192.168.1.10:80，更严谨的应该是加上http://192.168.1.10:80。&lt;/p>
&lt;p>FreshRSS也很贴心，设置-账户-API管理下有个url，点击进去会提示你访问api的url是多少。像是这样的：&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt"> 1
&lt;/span>&lt;span class="lnt"> 2
&lt;/span>&lt;span class="lnt"> 3
&lt;/span>&lt;span class="lnt"> 4
&lt;/span>&lt;span class="lnt"> 5
&lt;/span>&lt;span class="lnt"> 6
&lt;/span>&lt;span class="lnt"> 7
&lt;/span>&lt;span class="lnt"> 8
&lt;/span>&lt;span class="lnt"> 9
&lt;/span>&lt;span class="lnt">10
&lt;/span>&lt;span class="lnt">11
&lt;/span>&lt;span class="lnt">12
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">FreshRSS API endpoints
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Google Reader compatible API
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Your API address:
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">http://192.168.1.10/api/greader.php
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Google Reader API configuration test:
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">⚠️ WARN: Probable invalid base URL in ./data/config.php
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Fever compatible API
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Your API address:
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">http://192.168.1.10/api/fever.php
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Fever API configuration test:
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">⚠️ WARN: Probable invalid base URL in ./data/config.php
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">HowjsayDictionary.comCambridge DictionaryYouglish
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>但其实不是这样的。拿我的情况举例，我的ip是：192.168.1.10，端口是80，那么我的api地址就是http://192.168.1.10/api/greader.php。其实我在Docker中部署的，通过这个url是找不到的，实际的应该是http://192.168.1.10:80/api/greader.php。&lt;/p>
&lt;p>需要注意的是你需要把ip和端口改成你已经部署的FreshRSS的，而不是照抄我的。&lt;/p>
&lt;p>另外，登录时的账号与你登录FreshRSS是相同的，但是密码不是，密码你需要在FreshRSS的设置-账户-API管理下单独设置才可以。&lt;/p></description></item></channel></rss>