HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ubuntu-8gb-hel1-1 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: www-data (33)
PHP: 8.1.32
Disabled: NONE
Upload Files
File: /var/www/agighana.org_backup/instagram-test.php
<h1>Unlimited Elements - Instagram Test</h1>

<br>

<?php

function UnlimitedElementsputInstagramTest(){
	
	$objServices = new UniteServicesUC();
	
	$arrData = $objServices->getInstagramSavedDataArray();
	
	if(empty($arrData)){
		dmp("no saved instagram data found");
		return(false);
	}

	
	
	dmp("<b>Saved Instagram Data</b>");
	
	foreach($arrData as $key=>$value){
		
		if($key == "expires")
			$value = UniteFunctionsUC::timestamp2Date($value);
		
		dmp("$key: $value");
		
	}
	
	$userName = $arrData["username"];
	
	$response = $objServices->getInstagramData($userName);
	
	if(!empty($response))
		dmp("<b>Instagram data found, all ok</b>");
	else 
		dmp("<b>Error: No Instagram Data Fetched</b>");
	
	dmp($response);
	
	
}


try{

	UnlimitedElementsputInstagramTest();
	
}catch(Exception $e){
	
	HelperHtmlUC::outputException($e);
	
}