Hello, I would like to know how to get the URL ID as if the index was the ID, so type Using GET:
http://domain.com/api.php?id=1999&output=json
$id = $_GET['id'];
Okay, so long, well I'd like to know how you can get the id like this:
http://domain.com/1999/api.php?output=json
I would like to know how to get this ID, which in this case would be 1999
.
I want my index to detect in a way, a great example is the API of PagSeguro, that link or of the Paid Market:
http[s]://api.mercadopago.com/collections/notifications/{id here}?access_token={token here}
Example:
http[s]://api.mercadopago.com/collections/notifications/1799030657?access_token=APP_USR-46....
The output would look something like this: