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

#241
James JosephJames
Keymaster

1. The error you shared “device access denied” has nothing to do with the headers, check your session and permissions for that!

2. If you would like to include an header, you can always do so as shown in the example below ( I have added the “self::$jsonA” part.)

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