i set up a REST API based on this tutorial https://www.codeofaninja.com/2017/02/create-simple-rest-api-in-php.html
what i want to do is to provide some sort of security to it. for example to access the ..../read.php address like this .../read.php+{some long key}
they key should be stored on sever and on my side to ensure some kind of match. i know it's not the most secure method but i plan to use this API for an Android app and don't want to complicate things as i'm fairly new to this.
do you have nay suggestions ?