任何人都可以告诉我如何实施它。这是对我的要求。非常高兴谢谢你
function GetCustomerDetails() {
$url = 'https://api.ezypay.com/api/v1/customers/11111111-1111-1111-1111-1111';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, "aZj1zkAivrnZiiWpiM71O3hBUAAN6S:a");
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Accept: application/json',
'Content-Length: ' . strlen($data))
);