使用卷发显示查看记录

时间:2017-01-24 12:30:13

标签: php json curl

使用curl显示视图记录

我试过这段代码,但没有得到任何回应

$pro_url = 'https://creator.zoho.com/api/json/western-states-healthcare-group-2-0/view/Providers_Report?authtoken=b627006529f0d19852608be37d4bdf85&zc_ownername=nmormond&criteria=(Provider_Name=="Injury%20Treatment%20Centers%20Redwood")&scope=creatorapi';

curl_setopt($checkpro, CURLOPT_URL, $pro_url);

curl_setopt($checkpro, CURLOPT_VERBOSE, 1);//standard i/o streams 

curl_setopt($checkpro, CURLOPT_SSL_VERIFYPEER, FALSE);// Turn off the server and peer verification 

curl_setopt($checkpro, CURLOPT_SSL_VERIFYHOST, FALSE); 

curl_setopt($checkpro, CURLOPT_RETURNTRANSFER, true);//Set to return data to string ($response) 

$datapro = curl_exec($checkpro);

echo "<pre>";print_r($datapro);

但是,我想要这个输出

var zohonmormondview244 = {"Providers":[{"ZIP":"84123-6799","Provider_Type_Temp":"","Address_Line_1":"6321 S. Redwood Rd 105","Address_Line_2":"","Main_Fax":"801-904-3435","Website":"","Main_Phone":"801 904 3089","City":"Taylorsville","Provider_Name":"Injury Treatment Centers Redwood","State_Temp":"","Signed_POA":"No","Reimbursement_Rate":55,"In_Network":"Yes","State":"Utah","Signed_Purchae_Agreement":"Yes","VAR_Provider_Type":"PT / Chiro","Signed_HIPAA":"Yes","ID":"977948000005031127","Notes":""}]};

3 个答案:

答案 0 :(得分:2)

在设置所有::

之前,请执行此操作
$checkpro =curl_init($pro_url);

刚添加了这一行::

=IFERROR(IF(A2<>"",A2,B2/C2),"")

答案 1 :(得分:1)

你错过了

$checkpro =curl_init();

在设置所有这些参数之前。

同时删除网址中的双引号

$pro_url = 'https://creator.zoho.com/api/json/western-states-healthcare-group-2-0/view/Providers_Report?authtoken=b627006529f0d19852608be37d4bdf85&zc_ownername=nmormond&criteria=(Provider_Name==Injury%20Treatment%20Centers%20Redwood)&scope=creatorapi';

答案 2 :(得分:1)

改为使用它。

var windowWidth = $(window).width();
function myWayPoint() {
// Search form stick to top using waypoints.js
  if(windowWidth > 768 && $('body').attr('id') == 'home'){
    var sticky = new Waypoint.Sticky({
      element: $('.thm-search')[0],
      offset:  54
    });
  }
}
myWayPoint();