简体   繁体   English

在joomla / php应用程序中使用第三方Web服务API

[英]Using a 3rd party web service API in a joomla / php application

I am creating a custom application using the joomla platform. 我正在使用joomla平台创建自定义应用程序。 I have some 3rd party web service APIs that I need to use in my application. 我在应用程序中需要使用一些第三方Web服务API。

I'm not really sure how I will send and get the information from the API. 我不太确定如何发送和从API获取信息。 Is it possible to do the same thing a browser does ie send get/post requests to the API, and have a response returned? 浏览器是否可以做同样的事情,即向API发送获取/发布请求,并返回响应?

Found the JHttpTransportCurl class in the joomla API. 在joomla API中找到了JHttpTransportCurl类。 Looks like that will work. 看起来那样会起作用。

Please take at look at the the curl extension. 请看一下curl扩展部分。 This allows you to make calls like a browser. 这使您可以像浏览器一样拨打电话。

curl Extension 卷曲延伸

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM