2
Hi, I’d like to know how to get the URL ID as if the index were the ID, like this Using GET:
http://domain.com/api.php?id=1999&output=json
$id = $_GET['id'];
Okay, so far so good, but I’d like to know how it does to get the id like this:
http://domain.com/1999/api.php?output=json
I wonder how you get this ID that in case it would be 1999
.
I want my index detect so, a great example is the Pagseguro API, that link or the Mercado Pago:
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:
You changed the url with . htaccess, right?
– Victor Eyer
It depends on what you are talking about friend, I changed more I believe that is not what you are quoting, could give me an example friend?
– StoreDev