I'm building a site which has amazon & other affiliates associated with it and I'd like to use the links on twitter, however the links on twitter are shortened using bitly. Is it possible to unshorten the link using php?
So for example, the full url may be:
http://www.mysite.com/unbit.php?url=<a href="https://rads.stackoverflow.com/amzn/click/com/B0049J4O0K" rel="nofollow noreferrer" />
Which will automatically get shortened by twitter.
So what I want to do then is catch the URL (url=...)on my unbit.php page, unshorten it to the full url, log the details in a table and then pass on the user from my website using the unshortened url link.