https://developers.bux.ph/#operation/buxOauth 如果您向右看,將有一個預期參數的示例,您發送該參數以從服務器接收令牌。 下面是一個使用PHP的示例: $url = 'https://api.bux.ph/v1/api/sandbox/oauth/token/';$ch = curl_init($url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);curl_setopt($ch, CURLOPT_POST, true);curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(array( 'grant_type' => 'reports',)));curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'Authorization: Basic ' . base64_encode('client_id:client_secret'),));$response = curl_exec($ch);curl_close($ch);$response = json_decode($response, true);// get the "access_t