aggcat php sample is not working

流过昼夜 提交于 2019-11-29 11:35:42

I had trouble getting the PHP sample app up and working originally. After some debugging, here are the things I had to change to get it working:

• The OAuthSimple.php file was not part of the SimpleSAML package that I downloaded as instructed in the phpaggcat example. I found the OAuthSimple.php file here: OAuthSimple.php download.

• curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // Changed from true to false in class.aggcatauth.php

• curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // Added this line in example.php curl options

• set_time_limit(120); // Added this at beginning of example.php because bank downloads were taking longer than the default of 30 seconds

• changed max_input_vars = 2500 in php.ini

Once I made those changes, I was able to connect with the API and get it working.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!