Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/36.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
使用api键对json数据类型执行curl hhtp post请求_Curl_Http Post_Httpclient - Fatal编程技术网

使用api键对json数据类型执行curl hhtp post请求

使用api键对json数据类型执行curl hhtp post请求,curl,http-post,httpclient,Curl,Http Post,Httpclient,我已经找到了很多帖子,但无法获得完整的命令来使用api键在url上发布json数据。所有示例都有用户和登录名或无授权链接 curl -X POST -H "Content-Type: application/json" \ -d {JSON Data} \ https://postURL 我可以在哪里安装Api密钥 我的json如下所示: { "AlgorithmNum": 544, "values": [

我已经找到了很多帖子,但无法获得完整的命令来使用api键在url上发布json数据。所有示例都有用户和登录名或无授权链接

curl -X POST -H "Content-Type: application/json" \
    -d {JSON Data} \
    https://postURL
我可以在哪里安装Api密钥

我的json如下所示:

{
  "AlgorithmNum": 544,
  "values": [
    {
      "size": "231",
      "language": "c",
      "result": {
        "executiontime": 341.1,
        "runtimememory": 554,
        "cells": 12,
        "platform" " "android"
      }
    }
  ]
}