Category Archives: APS1.0

Account id fetching in aps package? How to get accountid of a customer into the configure section of the package?

use the below api call to fetch the accountid

Curl function not working in aps package/PA Server Why?

See the below example curl_setopt($curl,CURLOPT_HTTPHEADER,array (“Accept:application/json”)); curl_setopt($curl, CURLOPT_POST, 1); // Do a regular HTTP POST curl_setopt($curl, CURLOPT_POSTFIELDS, ‘client_id=’ . urlencode($client_id) . ‘&’ . ‘client_secret=’ . urlencode($client_secret) . ‘&’ . ‘grant_type=client_credentials’ . ‘&’ . ‘scope=openid’); curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($curl, CURLOPT_USERAGENT, “Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)”); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_URL, $token_url);… Read More »

‘oldsettings’ in aps package

Usually we will use the oldsettings_variablename in the case of updation for example we need to update the password. In this case we will just compare settings variable value and old settings variable value.if these 2 are not matching then will do the updation $oldpassword=getenv(‘OLDSETTINGS_password’);// will get the existing password $newpassword=getenv(‘SETTINGS_password’);// will ge the new… Read More »