· 8 years ago · Dec 05, 2017, 11:56 AM
1$api_key = "83995ea05a9939b0420d6ec7b0104b9c";
2$timestamp = time();
3$secret_key = "4a31f59cb287cba41402fce8dc7e1b03";
4$signature = base64_encode(md5($api_key.$timestamp.$secret_key,TRUE));
5
6$url = "https://staging.pujckomat24.cz/api/v2/loans/new?api_key=".$api_key."×tamp=".$timestamp."&signature=".$signature."&flow=affiliate_api_transitional";
7
8// Get cURL resource
9$curl = curl_init();
10// Set some options - we are passing in a useragent too here
11curl_setopt_array($curl, array(
12 CURLOPT_RETURNTRANSFER => 1,
13 CURLOPT_URL => $url,
14 CURLOPT_USERAGENT => 'LeadAttack'
15));
16// Send the request & save response to $resp
17$resp = curl_exec($curl);
18// Close request to clear up some resources
19curl_close($curl);
20
21die(print_r($resp, true));