Folgendes Problem ich möchte, dass der Twitteraccount ( http://twitter.com/tvhofweier ), welcher die Neuen Beiträge auf einer meiner Websiten ( http://tv-hofweier.de ) twittert einen URL Shortner benutzt.
Nun habe ich dazu ein API Modul, weis aber nicht wie ich es einfügen kann, hier das was bei dem API Modul des url Shortners steht:
Nun habe ich dazu ein API Modul, weis aber nicht wie ich es einfügen kann, hier das was bei dem API Modul des url Shortners steht:
API Documentation
adf.ly provides you with a simple, yet useful API for your application. Simply have your application access a URL like the following example:
http://adf.ly/api.php?key=b959e3d1358cce5a92495f44c93d0cc6&uid=28785&url=http://somewebsite.com
Replace "http://somewebsite.com" with whatever URL you are wanting shortened. The "key" and "uid" fields must be as they are above or the request will return an error.
The shortened URL will be returned to you in the body of the response in plain text. If the request was unsuccessful for any reason you will receive "error" as your response. If the exact link you request is already in your account, the original shortened URL will be returned to you and no new entry added to your account.
There will most likely be special characters in the URL you send, so you must encode the URL with Javascript's encodeURIComponent() or its equivilent in other languages, otherwise your request will fail.
Zuletzt bearbeitet: