Prabhjot Kaur• 115
@prabhkaur301
Posted
You should take the input dynamically from the user . But you've only added google.com link , that every time it shows the same link.
For this , just store the value of input in a variable and then add that variable at the end of API url as 'https://api.shrtco.de/v2/shorten?url='+query
here query is variable which stores the input value. Then you can have shortlinks for each input.
Marked as helpful
1