Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用UnirestPHP?需要在Mashape中链接Site2Sms吗?_Php_Api_Unirest_Mashape - Fatal编程技术网

如何使用UnirestPHP?需要在Mashape中链接Site2Sms吗?

如何使用UnirestPHP?需要在Mashape中链接Site2Sms吗?,php,api,unirest,mashape,Php,Api,Unirest,Mashape,我是API的初学者。。我正在做一个项目,并考虑包括Site2Sms Api来发送消息。我希望使用的API位于 API正在使用Unirest PHP库调用请求。。 有人能给出一个示例页面或代码片段,甚至是关于如何实现它的想法吗 提前感谢该页面提供了需要使用的PHP代码段,只需从左侧的菜单中选择即可。然后只需通过Composer安装Unirest: 首先找作曲家。谷歌是你的朋友 使用以下内容创建composer.json文件: { 需要开发人员:{ mashape/unirest-php:2* }

我是API的初学者。。我正在做一个项目,并考虑包括Site2Sms Api来发送消息。我希望使用的API位于

API正在使用Unirest PHP库调用请求。。 有人能给出一个示例页面或代码片段,甚至是关于如何实现它的想法吗


提前感谢

该页面提供了需要使用的PHP代码段,只需从左侧的菜单中选择即可。然后只需通过Composer安装Unirest:

首先找作曲家。谷歌是你的朋友

使用以下内容创建composer.json文件:

{ 需要开发人员:{ mashape/unirest-php:2* } }

然后运行:

编写器需要mashape/unirest php

请按照此处的说明操作:

通过自动加载要求编写器:

需要_once“vendor/autoload.php”

并从上面的mashape页面粘贴代码


这很简单。真的。

您安装了Unrirest吗?一个很好的方法是从http://getcomposer.org,然后composer search unirest将告诉您要安装哪个模块。您是否单击了链接并进行了RTFMed?代码致命错误:未捕获异常“exception”,在第394行的C:\wamp\www\other\vendor\mashape\unirest php\src\unirest\Request.php中显示消息“SSL证书问题:无法获取本地颁发者证书”!异常:SSL证书问题:无法在第394行堆栈时间内存函数位置1 0.0171 239440{main}上的C:\wamp\www\other\vendor\mashape\unirest php\src\unirest\Request.php中获取本地颁发者证书..\index.php:0 2 0.2120 455152 Unirest\Request::get..\index.php:9 3 0.2276 464696 Unirest\Request::send..\Request.php:170帮助@API\u Sherriff\u或let SSL错误是您没有配置本地证书。您可以使用此证书,也可以生成自己的证书: