Tuesday 30 August 2011

API v1 - Functions

  1. Generate unique id
  2. Encrypt string
  3. Decrypt string
  4. Encode HTML
  5. Decode HTML
  6. Human verify (Request, Image, Verify)

API v1 - Decrypt string


Key:
Data:

API Call: http://api.borigami.net/v1.php?k=decrypt

Input:

key=4e5da3a75af1a
data=Naj/VUuzWmRDMvQldwXGob38myfai+cwJ70kAoZyZyo=
  • Part in blue color is a key which can be a unique id.
  • Part in red color is encrypted text which will be decrypted.
  • Input must be post variables

Output:

  • In case of error:
  • kind=error
    data=Invalid request!
    

    Part in red color is error message.

  • In case of success:
  • kind=success
    data=Hello world!
    

    Part in red color is decrypted text.

API v1 - Encrypt string


Key:
Data:

API Call: http://api.borigami.net/v1.php?k=encrypt

Input:

key=4e5da3a75af1a
data=Hello world!
  • Part in blue color is a key which can be a unique id.
  • Part in red color is text which will be encrypted.
  • Input must be post variables

Output:

  • In case of error:
  • kind=error
    data=Invalid request!
    

    Part in red color is error message.

  • In case of success:
  • kind=success
    data=Naj/VUuzWmRDMvQldwXGob38myfai+cwJ70kAoZyZyo=
    

    Part in red color is encrypted text.

API v1 - Generate unique id



API Call: http://api.borigami.net/v1.php?k=uniqid

Output:

  • In case of error:
  • kind=error
    data=Invalid request!
    

    Part in red color is error message.

  • In case of success:
  • kind=success
    data=4e5d7a6590852
    

    Part in red color is unique id.