For developers AdLinkFly prepared API which returns responses in JSON or TEXT formats, currently there is one method which can be used to shorten links on behalf of your account.
All you have to do is to send a GET request with your API token and URL Like the following:
You will get a JSON reposnse like the following
If you want a TEXT reposnse just add &format=text at the end of your request as the below example. This will return just the short link. Note that if an error occurs, it will not output anything.
If you want to use developers API with the banner advertising add the below code to the end of the URL
If you want to use developers API without advertising add the below code to the end of the URL
That's it :)
To use the API in your PHP application, you need to send a GET request via file_get_contents or cURL. Please check the below sample examples using file_get_contents
Using JSON Response
Using Plain Text Response