[英]Fetching WordPress posts using Json API
I am new to the whole JSON thing and currently working on an Android App for my WordPress site using Intel XDK. 我是整个JSON的新手,目前正在使用Intel XDK在WordPress站点的Android应用程序上工作。 I have installed WordPress' JSON API Plugin which enables me to get recent posts using http://example.com/?json=get_recent_posts What I don't know is how to display them on my App.
我已经安装了WordPress的JSON API插件 ,该插件使我能够使用http://example.com/?json=get_recent_posts获得最新帖子,但我不知道如何在应用程序中显示它们。 I am new and need your kind help.
我是新手,需要您的帮助。 Please help me out.
请帮帮我。 Thank you for your time.
感谢您的时间。
Watch this tutorial on how to do just that. 观看本教程,了解如何做到这一点。 Intel® XDK App Designer - Using Services Datafeed in App Designer
英特尔®XDK应用设计器-在应用设计器中使用服务数据馈送
When HE drills down in the Web Services section for Rotten Tomatoes© api info, YOU need to select: API Explorer Sandbox > Methods > GET 当HE在“ Web服务”部分中深入“烂番茄”©api信息时,您需要选择:API Explorer沙箱>方法> GET
Paste in the URL of the JSON API from WordPress: example.com/?json=get_recent_posts 从WordPress粘贴JSON API的URL:example.com/?json=get_recent_posts
Follow the tutorial exact (mind your drag and drop in XDK..) and you will accomplish this with ease. 严格按照本教程进行操作(注意在XDK中的拖放操作。),您将轻松完成此操作。
IMPORTANT! 重要! * TIP - When selecting Angular or Backbone options in the data-bindings process of the tutorial, I found that if I selected Angular.js MVC framework, I was getting the
<p>
tag in from my imported content
and/or excerpt
data from the JSON output. * 提示 -在本教程的数据绑定过程中选择Angular或Backbone选项时,我发现如果选择Angular.js MVC框架,我将从导入的
content
和/或excerpt
数据中获取<p>
标记。 JSON输出。 So, to combat this issue I simply selected the other option of Backbone.js instead and all the p tags went away and also some other small formatting issues i saw. 因此,要解决此问题,我只是选择了Backbone.js的另一个选项,所有p标签都消失了,还有其他一些小的格式化问题。
In addition , to do a ( obviously needed , auto-refresh on post/page/anything you are pulling in from JSON API plugin) ****Copy paste link ---> software.intel.com/en-us/videos/pull-to-refresh-in-framework-7 另外 ,要做一个( 显然需要自动刷新您从JSON API插件中提取的帖子/页面/内容)****复制粘贴链接---> software.intel.com/zh-cn/videos / pull-to-refresh-in-framework-7
Framework 7 Templates to help out ****Copy paste link ---> idangero.us/framework7/examples/#.VqjrVVMrJFw Framework 7模板以帮助解决 ****复制粘贴链接---> idangero.us/framework7/examples/#.VqjrVVMrJFw
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.