الحمل والولادة







Installation

  1. Copy the files into your root directory
  2. Congratulations, you're done!

Configuration

There is a config.php file to which you get redirected after copying the files to your server. Adjust the configuration to your needs and then either delete the config.php file from your server or rename it using the wizard.

API

It's a RESTful API according to the specifications.
URL: http://yourdomain/surlapi
  • /version GET -> returns the version
  • /md5/[Value] GET -> returns the encrypted [Value]
  • /surl
    • /[ShortenedURL]/redirect GET -> redirects to the url
    • /[ShortenedURL]/log GET -> click log
  • /surl POST -> Create
    • url: The url
    • auth (optional): If the server requires authentication its the encrypted (md5) password
    • surl (optional): If the server allows choosable shorten
  • /surl DELETE -> Delete
    • surl: The shortened Url
    • auth (optional): If the server requires authentication its the encrypted (md5) password
Feel free to change the script to your needs and notify me if you have some improvements!












----------------------------------------------
----------------------------------------------

التالي
هذا هو أحدث موضوع.
السابق
رسالة أقدم

0 التعليقات:

إرسال تعليق

 
مدونة سحاب © 2014.جميع الحقوق محفوظة. بدعم من عرب ويب
Top