OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "{\"cmd\"=>\"your_value\", \"pictype\"=>\"your_value\", \"pic\"=>\"your_value\"}");
Request request = new Request.Builder()
  .url("http://a.apix.cn/apixlab/idcardrecog/idcardimage")
  .post(body)
  .addHeader("accept", "application/json")
  .addHeader("content-type", "application/json")
  .addHeader("apix-key", "您的apix-key")
  .build();

Response response = client.newCall(request).execute();
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "http://a.apix.cn/apixlab/idcardrecog/idcardimage",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\"cmd\"=>\"your_value\", \"pictype\"=>\"your_value\", \"pic\"=>\"your_value\"}",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "apix-key: 您的apix-key",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
<?php

$request = new HttpRequest();
$request->setUrl('http://a.apix.cn/apixlab/idcardrecog/idcardimage');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders(array(
  'apix-key' => '您的apix-key',
  'content-type' => 'application/json',
  'accept' => 'application/json'
));

$request->setBody('{"cmd"=>"your_value", "pictype"=>"your_value", "pic"=>"your_value"}');

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
<?php

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->append('{"cmd"=>"your_value", "pictype"=>"your_value", "pic"=>"your_value"}');

$request->setRequestUrl('http://a.apix.cn/apixlab/idcardrecog/idcardimage');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders(array(
  'apix-key' => '您的apix-key',
  'content-type' => 'application/json',
  'accept' => 'application/json'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
#import <Foundation/Foundation.h>

NSDictionary *headers = @{ @"accept": @"application/json",
                           @"content-type": @"application/json",
                           @"apix-key": @"您的apix-key" };

NSData *postData = [[NSData alloc] initWithData:[@"{"cmd"=>"your_value", "pictype"=>"your_value", "pic"=>"your_value"}" dataUsingEncoding:NSUTF8StringEncoding]];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://a.apix.cn/apixlab/idcardrecog/idcardimage"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
var client = new RestClient("http://a.apix.cn/apixlab/idcardrecog/idcardimage");
var request = new RestRequest(Method.POST);
request.AddHeader("apix-key", "您的apix-key");
request.AddHeader("content-type", "application/json");
request.AddHeader("accept", "application/json");
request.AddParameter("application/json", "{\"cmd\"=>\"your_value\", \"pictype\"=>\"your_value\", \"pic\"=>\"your_value\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://a.apix.cn/apixlab/idcardrecog/idcardimage"

	payload := strings.NewReader("{\"cmd\"=>\"your_value\", \"pictype\"=>\"your_value\", \"pic\"=>\"your_value\"}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("accept", "application/json")
	req.Header.Add("content-type", "application/json")
	req.Header.Add("apix-key", "您的apix-key")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
import Foundation

let headers = [
  "accept": "application/json",
  "content-type": "application/json",
  "apix-key": "您的apix-key"
]

let postData = NSData(data: "{"cmd"=>"your_value", "pictype"=>"your_value", "pic"=>"your_value"}".dataUsingEncoding(NSUTF8StringEncoding)!)

var request = NSMutableURLRequest(URL: NSURL(string: "http://a.apix.cn/apixlab/idcardrecog/idcardimage")!,
                                        cachePolicy: .UseProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.HTTPMethod = "POST"
request.allHTTPHeaderFields = headers
request.HTTPBody = postData

let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    println(error)
  } else {
    let httpResponse = response as? NSHTTPURLResponse
    println(httpResponse)
  }
})

dataTask.resume()
import http.client

conn = http.client.HTTPConnection("a.apix.cn")

payload = "{\"cmd\"=>\"your_value\", \"pictype\"=>\"your_value\", \"pic\"=>\"your_value\"}"

headers = {
    'accept': "application/json",
    'content-type': "application/json",
    'apix-key': "您的apix-key"
    }

conn.request("POST", "/apixlab/idcardrecog/idcardimage", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "http://a.apix.cn/apixlab/idcardrecog/idcardimage"

payload = "{\"cmd\"=>\"your_value\", \"pictype\"=>\"your_value\", \"pic\"=>\"your_value\"}"
headers = {
    'accept': "application/json",
    'content-type': "application/json",
    'apix-key': "您的apix-key"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
var http = require("http");

var options = {
  "method": "POST",
  "hostname": "a.apix.cn",
  "port": null,
  "path": "/apixlab/idcardrecog/idcardimage",
  "headers": {
    "accept": "application/json",
    "content-type": "application/json",
    "apix-key": "您的apix-key"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write("{\"cmd\"=>\"your_value\", \"pictype\"=>\"your_value\", \"pic\"=>\"your_value\"}");
req.end();
var request = require("request");

var options = { method: 'POST',
  url: 'http://a.apix.cn/apixlab/idcardrecog/idcardimage',
  headers: 
   { 'apix-key': '您的apix-key',
     'content-type': 'application/json',
     accept: 'application/json' },
  body: '{"cmd"=>"your_value", "pictype"=>"your_value", "pic"=>"your_value"}' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://a.apix.cn/apixlab/idcardrecog/idcardimage")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)
request["accept"] = 'application/json'
request["content-type"] = 'application/json'
request["apix-key"] = '您的apix-key'
request.body = "{\"cmd\"=>\"your_value\", \"pictype\"=>\"your_value\", \"pic\"=>\"your_value\"}"

response = http.request(request)
puts response.read_body
curl --request POST \
  --url http://a.apix.cn/apixlab/idcardrecog/idcardimage \
  --header 'accept: application/json' \
  --header 'apix-key: 您的apix-key' \
  --header 'content-type: application/json' \
  --data '{"cmd"=>"your_value", "pictype"=>"your_value", "pic"=>"your_value"}'
CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "http://a.apix.cn/apixlab/idcardrecog/idcardimage");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "apix-key: 您的apix-key");
headers = curl_slist_append(headers, "content-type: application/json");
headers = curl_slist_append(headers, "accept: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\"cmd\"=>\"your_value\", \"pictype\"=>\"your_value\", \"pic\"=>\"your_value\"}");

CURLcode ret = curl_easy_perform(hnd);