PHP 的维基百科 API 库

发布于 2024-10-02 16:11:12 字数 1539 浏览 1 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

等你爱我 2024-10-09 16:11:12

是的,API 有一大堆 PHP 包装器:

http://www.mediawiki .org/wiki/API:Client_code#PHP

Yes, there are a whole bunch of PHP wrappers for the API:

http://www.mediawiki.org/wiki/API:Client_code#PHP

随风而去 2024-10-09 16:11:12

维基百科有一个非常全面的 API,之前在 stackoverflow 上已经介绍过了:如何使用维基百科 api(如果存在)?

至于专门用于利用 CodeIgniter API 的类/库的问题,据我所知没有。

然而话虽如此,任何类型的库都很少需要利用 API,因为您可以使用内置函数,例如 http_build_url 发出 API 请求,并且请求可以以您想要的任何格式返回:

json、jsonfm、php、phpfm、wddx、
wddxfm、xml、xmlfm、yaml、yamlfm、
rawfm、txt、txtfm、dbg、dbgfm

There is an extremely comprehensive API for Wikipedia, and it has been covered before on stackoverflow: How to use wikipedia api if it exists?

As for the question about a class/library specifically to leverage the API for CodeIgniter, there is none to my knowledge.

However with that said there is very little need for any sort of libraries to leverage the API as you can use built in functions such as http_build_url to make API requests and the request can be returned in any format you desire:

json, jsonfm, php, phpfm, wddx,
wddxfm, xml, xmlfm, yaml, yamlfm,
rawfm, txt, txtfm, dbg, dbgfm

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文