使用 phalconphp 进行远程 rest web 服务调用
Remote rest web service call using phalconphp
我想使用 Phalcon Php 框架调用 API。
例子:
http://example.com?key=abc
Phalcon 没有内部构建方式来询问其他服务。
您可以使用任一内置于孵化器项目的客户端:
https://github.com/phalcon/incubator/tree/master/Library/Phalcon/Http/Client
或标准连接 class 作为 Guzzle,或本机 php curl 方法。
我想使用 Phalcon Php 框架调用 API。 例子: http://example.com?key=abc
Phalcon 没有内部构建方式来询问其他服务。
您可以使用任一内置于孵化器项目的客户端:
https://github.com/phalcon/incubator/tree/master/Library/Phalcon/Http/Client
或标准连接 class 作为 Guzzle,或本机 php curl 方法。