api-example-php:PHP API 示例代码

时间:2021-06-13 17:38:41
【文件属性】:
文件名称:api-example-php:PHP API 示例代码
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-13 17:38:41
PHP PHP API 示例 您可以在此处下载 API 文档 ( ) 中使用的示例代码。 随意为其他 HTTP 库添加新示例或修复您通过拉取请求发现的任何错误。 卷曲.php 来自 PHP 标准库的示例代码。 创建新资源 $ raw_response = apiCall ( 'POST' , 'articles' , '{"Article":{"Description":"My description"}}' ); $ response = json_decode ( $ raw_response , true ); $ article_number = $ response [ 'Article' ][ 'ArticleNumber' ]; 更新资源 apiCall ( 'PUT' , 'articles/' . $ article_number , '{"Article":{"De
【文件预览】:
api-example-php-master
----curl.php(954B)
----README.md(2KB)

网友评论