api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
api [2018/02/27 13:24]
admin
api [2018/07/26 11:00] (current)
admin
Line 234: Line 234:
 curl_setopt($ch,​ CURLOPT_URL,​ $url); curl_setopt($ch,​ CURLOPT_URL,​ $url);
 curl_setopt($ch,​ CURLOPT_RETURNTRANSFER,​ 1); curl_setopt($ch,​ CURLOPT_RETURNTRANSFER,​ 1);
-curl_setopt($ch,​ CURLOPT_HTTPHEADER,​ array("​Accept:​ application/​json"​);​+curl_setopt($ch,​ CURLOPT_HTTPHEADER,​ array("​Accept:​ application/​json"​));
 $result = curl_exec($ch);​ $result = curl_exec($ch);​
 $http_code = curl_getinfo($ch,​ CURLINFO_HTTP_CODE);​ $http_code = curl_getinfo($ch,​ CURLINFO_HTTP_CODE);​
Line 425: Line 425:
 curl_setopt($ch,​ CURLOPT_URL,​ $url); curl_setopt($ch,​ CURLOPT_URL,​ $url);
 curl_setopt($ch,​ CURLOPT_RETURNTRANSFER,​ 1); curl_setopt($ch,​ CURLOPT_RETURNTRANSFER,​ 1);
-curl_setopt($ch,​ CURLOPT_HTTPHEADER,​ array("​Accept:​ application/​json"​);​+curl_setopt($ch,​ CURLOPT_HTTPHEADER,​ array("​Accept:​ application/​json"​));
 $result = curl_exec($ch);​ $result = curl_exec($ch);​
 $http_code = curl_getinfo($ch,​ CURLINFO_HTTP_CODE);​ $http_code = curl_getinfo($ch,​ CURLINFO_HTTP_CODE);​
Line 627: Line 627:
 curl_setopt($ch,​ CURLOPT_URL,​ $url); curl_setopt($ch,​ CURLOPT_URL,​ $url);
 curl_setopt($ch,​ CURLOPT_RETURNTRANSFER,​ 1); curl_setopt($ch,​ CURLOPT_RETURNTRANSFER,​ 1);
-curl_setopt($ch,​ CURLOPT_HTTPHEADER,​ array("​Accept:​ application/​json"​);​+curl_setopt($ch,​ CURLOPT_HTTPHEADER,​ array("​Accept:​ application/​json"​));
 $result = curl_exec($ch);​ $result = curl_exec($ch);​
 $http_code = curl_getinfo($ch,​ CURLINFO_HTTP_CODE);​ $http_code = curl_getinfo($ch,​ CURLINFO_HTTP_CODE);​
Line 822: Line 822:
 curl_setopt($ch,​ CURLOPT_URL,​ $url); curl_setopt($ch,​ CURLOPT_URL,​ $url);
 curl_setopt($ch,​ CURLOPT_RETURNTRANSFER,​ 1); curl_setopt($ch,​ CURLOPT_RETURNTRANSFER,​ 1);
-curl_setopt($ch,​ CURLOPT_HTTPHEADER,​ array("​Accept:​ application/​json"​);​+curl_setopt($ch,​ CURLOPT_HTTPHEADER,​ array("​Accept:​ application/​json"​));
 $result = curl_exec($ch);​ $result = curl_exec($ch);​
 $http_code = curl_getinfo($ch,​ CURLINFO_HTTP_CODE);​ $http_code = curl_getinfo($ch,​ CURLINFO_HTTP_CODE);​
Line 1383: Line 1383:
 curl_setopt($ch,​ CURLOPT_URL,​ $url); curl_setopt($ch,​ CURLOPT_URL,​ $url);
 curl_setopt($ch,​ CURLOPT_RETURNTRANSFER,​ 1); curl_setopt($ch,​ CURLOPT_RETURNTRANSFER,​ 1);
-curl_setopt($ch,​ CURLOPT_HTTPHEADER,​ array("​Accept:​ application/​json"​);​+curl_setopt($ch,​ CURLOPT_HTTPHEADER,​ array("​Accept:​ application/​json"​));
 $result = curl_exec($ch);​ $result = curl_exec($ch);​
 $http_code = curl_getinfo($ch,​ CURLINFO_HTTP_CODE);​ $http_code = curl_getinfo($ch,​ CURLINFO_HTTP_CODE);​
Line 1535: Line 1535:
 curl_setopt($ch,​ CURLOPT_URL,​ $url); curl_setopt($ch,​ CURLOPT_URL,​ $url);
 curl_setopt($ch,​ CURLOPT_RETURNTRANSFER,​ 1); curl_setopt($ch,​ CURLOPT_RETURNTRANSFER,​ 1);
-curl_setopt($ch,​ CURLOPT_HTTPHEADER,​ array("​Accept:​ application/​json"​);​+curl_setopt($ch,​ CURLOPT_HTTPHEADER,​ array("​Accept:​ application/​json"​));
 $result = curl_exec($ch);​ $result = curl_exec($ch);​
 $http_code = curl_getinfo($ch,​ CURLINFO_HTTP_CODE);​ $http_code = curl_getinfo($ch,​ CURLINFO_HTTP_CODE);​
api.txt · Last modified: 2018/07/26 11:00 by admin