如何使用 Joomla 1.5 连接到外部 API?
我想从我的 joomla 网站连接到外部 API。
外部 api 是一个预订系统,我想查看信息并更新内容。他们提供了用于测试的 URL 以及各种可用功能的文档。
不知道从这里该做什么。我以前构建过许多 Joomla 组件,但从未有时间学习 XML-RPC 及其工作原理。
我曾考虑过掌握 Joomla 1.5 扩展和框架开发,但无法从中得到我想要的东西。任何帮助表示赞赏。
I want to connect to an external API from my joomla website.
The external api is a reservation system which I would like to view info and update content. They have provided a URL for testing as well as documentation of the various functions available.
Not sure what to do from here. I have built many Joomla components before but never had time to learn XML-RPC and how it works.
I have looked at mastering Joomla 1.5 extensions and framework development but couldn't get what I wanted from it. Any help appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您过去构建过 MVC 组件,那么困难的部分就完成了。 XML-RPC 与典型的 cURL 请求并没有什么不同,因为您构建了一组发送到远程服务器然后返回响应的参数。主要区别在于请求和响应采用 XML 格式。这里有一个很好的概述 - http://www.phpbuilder.com/columns /luis20010329.php3?print_mode=1
If you have built MVC components in the past, then the hard part is done. XML-RPC is not all that different from a typical cURL request in that you build a set of parameters that are sent to a remote server that then returns a response. The main difference is that the request and response are formatted in XML. There is a pretty good overview here - http://www.phpbuilder.com/columns/luis20010329.php3?print_mode=1
如果您想从 joomla 连接到外部链接,您可以将链接类型(菜单项)修改为“wrapper”(显示 iframe 将外部页面或站点包装到 Joomla!),完成后,在右侧有一些基本参数,您可以在那里编写链接,并添加宽度和高度。
If you want to connect to an external link from your joomla, you can modify the link type (menu item) to "wrapper" (Displays an iframe to wrap an external page or site into Joomla! ), when you are done, in the right side there are some Basic parameters, you can write there the link, and add the width and height to it.