我想用php调用mifinity api

时间:2017-03-06 18:28:53

标签: php json api

我正在使用以下api:http://apidocs.mifinity.com/#/doc/2但它不起作用?

我的API密钥

$data = array(
    'key' => "1234567777"
);
$url = 'https://demo.mifinitypay.com/';
$ch = curl_init($url);
$postString = http_build_query($data, '', '&');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postString);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
var_dump($response);

1 个答案:

答案 0 :(得分:0)

pom.xml