Home Forums Traccar API PHP Integration Accept header missing Reply To: Accept header missing

#238
AnkitaAnkita
Participant

Hi James
I am getting below issue in position and positions function both.
Device access denied – SecurityException (PermissionsManager:194 < PositionResource:89 < …)

private static $jsonA='Accept: application/json';
private static $jsonC='Content-Type: application/json';
public static function positions($sessionId){
	$data = '';
	return self::curl('/api/positions?'.$data,'GET',$sessionId,'',array());
}

public static function position($sessionId,$id){
	
	$data='id='.$id;
	
	return self::curl('/api/positions?'.$data,'GET',$sessionId,'',array());
}
  • This reply was modified 3 months, 1 week ago by James JosephJames.