php - 在rest API中调用LINK(php)

标签 php rest guzzle

研究提到 LINK 调用的 REST API。我只熟悉 postget 等,而不熟悉 LINK 和 Guzzle 环境,因此尝试找到有关此问题的更多信息以及如何在 Guzzle 中调用 LINK。有人知道这个吗?

https://penneo.readme.io/docs/sending-a-casefile-1

LINK /api/v1/folders/<folder id>/casefiles/<your casefile id>

最佳答案

https://guzzle3.readthedocs.io/http-client/request.html

You can create custom HTTP requests that use non-standard HTTP methods using the createRequest() method of a client object.

$request = $client->createRequest('COPY', 'http://example.com/foo', array(
    'Destination' => 'http://example.com/bar',
    'Overwrite'   => 'T'
));
$response = $request->send();

关于php - 在rest API中调用LINK(php),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56996691/

相关文章:

php - 网站。 AJAX 和 FIREFOX 问题。我认为 Firefox 不喜欢 ajax..?

ruby-on-rails - Ruby on Rails - 区分 REST API 中的复数资源与单数资源

spring - 使用 Spring 处理 REST 应用程序中映射的不明确处理程序方法

php - 无法使用 Guzzle 发布以 '@' 开头的内容

php - 使用 mailgun PHP API 发送电子邮件

php - Ajax 调用返回的数据

php - 自动更新$_SESSION[余额]?

PHP 类返回 ErrorInfo()

android - 如何在 Android 中使用 REST API 从 Firebase 数据库中检索数据?

php - 如何从 guzzle 请求中获取和显示图像