methods\Test\Server.phpView Source

Show: PublicProtectedPrivateinherited
    Table of Contents
    test.server

    Test connection with server

    This method was created just to test how API works & get server's time. If param require_test will be set fields int_value and str_value will be required.

    Request

    • require_test Trigger for testing 102 error. If it was set, int_value and str_value will be required integer
    • int_value Integer, that will be returned back if it was set integer
    • str_value String, that will be returned back if it was set string
    • randoms If it was set, API returns specified amount of randoms between 1000 and 9999 integer
    • auth_test Checks token integer

      Response

    • got_int Integer from int_value integer
    • got_str String from str_value string
    • randoms Specified amount of randoms between 1000 and 9999. Max amount - 15 nums array, that contains objects of type integer
    • ip User's IP string, required field
    • ua User's User Agent string, required field
    • time Time on API server PHP Timestamp, required field
    • auth_test If auth_test successed - returns true bool
    Author
    Sergey Dilong  
    License
    GPL-2.0  
    Package
    Temply-Account\Methods  
    Documentation was generated by phpDocumentor v2.9.0.