if($type=='UserData'){
$apiURL = $protocol.'://api.allforjoomla.com/ingallery/getUser/?user='.$_data;
}
else if($type=='HashtagData'){
$apiURL = $protocol.'://api.allforjoomla.com/ingallery/getHashtag/?hashtag='.$_data;
}
else if($type=='ItemData'){
$apiURL = $protocol.'://api.allforjoomla.com/ingallery/getItem/?code='.$_data;
}
else if($type=='LocationData'){
$apiURL = $protocol.'://api.allforjoomla.com/ingallery/getLocation/?location='.$_data;
}
else{
$apiURL = $protocol.'://api.allforjoomla.com/ingallery/getUrl/?scope='.$_data;
}
$responce = self::request($apiURL, array(
'domain' => $URI->getHost(),
'license_key' => $config->get('purchase_code', ''),
), null, 30, true);