From 0fcf751cc2ecf1a5943de8b48a2d5d71c4123821 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 9 Aug 2020 11:58:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9provider=20authorities=20?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E5=86=B2=E7=AA=81=E5=AE=89=E8=A3=85=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/api.md b/api.md index 3c4aa0983..2da9c660f 100644 --- a/api.md +++ b/api.md @@ -5,9 +5,12 @@ ### Web 待补充 ### Content Provider +* 需声明io.legado.READ_WRITE权限 +* providerHost为"包名.ReaderProvider", 如io.legado.app.release.ReaderProvider,不同包的地址不同,防止冲突安装失败 +* 以下出现的providerHost请自行替换 #### 插入单个书源 ``` -URL = content://io.legado.app.api.ReaderProvider/source/insert +URL = content://providerHost/source/insert Method = insert ``` @@ -16,7 +19,7 @@ Method = insert #### 插入多个书源 ``` -URL = content://io.legado.app.api.ReaderProvider/sources/insert +URL = content://providerHost/sources/insert Method = insert ``` @@ -25,7 +28,7 @@ Method = insert #### 获取书源 ``` -URL = content://io.legado.app.api.ReaderProvider/source/query?url=xxx +URL = content://providerHost/source/query?url=xxx Method = query ``` @@ -34,7 +37,7 @@ Method = query #### 获取所有书源 ``` -URL = content://io.legado.app.api.ReaderProvider/sources/query +URL = content://providerHost/sources/query Method = query ``` @@ -43,7 +46,7 @@ Method = query #### 删除多个书源 ``` -URL = content://io.legado.app.api.ReaderProvider/sources/delete +URL = content://providerHost/sources/delete Method = delete ``` @@ -52,7 +55,7 @@ Method = delete #### 插入书籍 ``` -URL = content://io.legado.app.api.ReaderProvider/book/insert +URL = content://providerHost/book/insert Method = insert ``` @@ -61,7 +64,7 @@ Method = insert #### 获取所有书籍 ``` -URL = content://io.legado.app.api.ReaderProvider/books/query +URL = content://providerHost/books/query Method = query ``` @@ -70,7 +73,7 @@ Method = query #### 获取书籍章节列表 ``` -URL = content://io.legado.app.api.ReaderProvider/book/chapter/query?url=xxx +URL = content://providerHost/book/chapter/query?url=xxx Method = query ``` @@ -80,7 +83,7 @@ Method = query #### 获取书籍内容 ``` -URL = content://io.legado.app.api.ReaderProvider/book/content/query?url=xxx&index=1 +URL = content://providerHost/book/content/query?url=xxx&index=1 Method = query ```