guzzlehttp

    0热度

    1回答

    我试图通过Tumblr PHP API对用户进行身份验证。 我得到这个错误 Fatal error: Uncaught exception 'GuzzleHttp\Exception\RequestException' with message 'cURL error 60: SSL certificate problem: unable to get local issuer certifica

    0热度

    1回答

    请问我应该如何发送一个文件上传到api上? 在API服务器,我们有一个POST方法,它给出了两个参数:查询 一个name和formData一个文件,那么它提供了一个链接作为响应体。 我要通过客户端狂饮这种格式发送文件: $file = $request->file('InputFile'); $file_path = $file->getPathname(); $response = $thi

    1热度

    1回答

    我的nginx的配置 文件的nginx/nginx.conf #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events {

    0热度

    1回答

    我有一个具有不同IP地址的Web服务器。 阿帕奇virtualhosts和DNS映射是这样的: ip1 => ip1.domain.com ip2 => ip2.domain.com ip3 => ip3.domain.com 我这样做,所以我可以从不同的IP地址使用guzzlehttp。 但如果我这样做,任何那些virthual主机上: $client = new \GuzzleHttp

    11热度

    3回答

    我正在尝试为名为creditguard的本地网关创建自定义的omnipay驱动程序。 对于此网关,您需要将数据发布到端点并获取付款表单的重定向网址。 我的问题是如何在购买前发布并获得响应? 编辑: Gateway.php class Gateway extends AbstractGateway { public function getName() { retu

    0热度

    1回答

    我已经安装了客户端,并使用composer dump autoload做了更新,但我仍然得到相同的错误。在通过composer安装后需要guzzlehttp/guzzle:〜6.0在projects目录下。 $client = new GuzzleHttp\Client(); 为什么不工作,为什么它甚至会引用错误的目录?

    0热度

    1回答

    我试图创建与标题和内容到位桶的问题创建问题,但它与错误失败: {"type": "error", "error": {"fields": {"content": "expected a dictionary"}, "message": "Bad request"}} 但是,如果我不发送content,只有在title,它的工作原理,并在创建问题 下面是相关代码 $response = $thi

    1热度

    1回答

    我想通过它的API将gcode文件上传到我的八段打印。 链接到其文档:http://docs.octoprint.org/en/master/api/files.html#upload-file-or-create-folder Octoprint响应内部服务器错误。 在检查其日志文件,我发现下面几行表示octoprints上传功能的问题 File "/home/pi/oprint/local/l

    1热度

    1回答

    我需要为laravel安装omnipay包。 composer require ignited/laravel-omnipay 在安装包中收到一个错误: Your requirements could not be resolved to an installable set of packages. 随着列表中的问题: Problem 1 - Installation request fo

    0热度

    1回答

    在狂饮5.3,你可以在下面的例子中使用event subscribers为: use GuzzleHttp\Event\EmitterInterface; use GuzzleHttp\Event\SubscriberInterface; use GuzzleHttp\Event\BeforeEvent; use GuzzleHttp\Event\CompleteEvent; class