Why does using PHP load_curl fail with a 500 error when using initConnectAPI for API authentication?
Environment:
Connect for PHP API (CPHP)
Oracle B2C Service
Issue:
require_once ( get_cfg_var( 'doc_root' ) . '/include/ConnectPHP/Connect_init.phph' );
initConnectAPI([username], [password]);
use RightNow\Connect\v1_4 as RNCPHP;
load_curl();
Resolution:
require_once(get_cfg_var( 'doc_root' ) . '/include/init.phph');
require_once ( get_cfg_var( 'doc_root' ) . '/include/ConnectPHP/Connect_init.phph' );
initConnectAPI([username], [password]);
use RightNow\Connect\v1_4 as RNCPHP;
load_curl();
require_once ( get_cfg_var( 'doc_root' ) . '/include/services/AgentAuthenticator.phph');
$account = AgentAuthenticator::authenticateCredentials([username], [password]);
use RightNow\Connect\v1_4 as RNCPHP;
load_curl();