For Sending Json Request, I created a function with XMLHttpRequest() (Code)
(Actually I have changed the storage provider so APIs are little different but understandable)
First, we open a new connection to your storage provider, then tell them that we are going to send json data.
Then create a JSON Object something like this {"l":<LONG_URL> , "s": <SHORT_URL_SLUG>} then send the json object to my JSONBOX endpoint (yes, I have switched to jsonbox from jsonstore).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
For Sending Json Request, I created a function with XMLHttpRequest() (Code)
(Actually I have changed the storage provider so APIs are little different but understandable)
First, we open a new connection to your storage provider, then tell them that we are going to send json data.
Then create a JSON Object something like this
{"l":<LONG_URL> , "s": <SHORT_URL_SLUG>}
then send the json object to my JSONBOX endpoint (yes, I have switched to jsonbox from jsonstore).