Skip to content

Verify weblogin v1

Web login verification v1

This API verifies login information after login.

  • Request URL
    Commercial Server URL https://weblogin.withhive.com/verify
    Sandbox URL https://sandbox-weblogin.withhive.com/verify
  • Request Header
    HTTP Method POST
    Content-Type application/json
  • Request Body
    Field Name Type Description Required
    param string

    The param string value is created through URL encoding and BASE64 encoding of the JSON data composed of the key values in the table below.

    Y
  • Request Body - param
    Field Name Type Description
    token string the token information received as a response value when the web login v1 was successful.
    pid string the Player ID information received as a response value when the web login v1 was successful.
  • Request Example
    // the original param composed of JSON object. The string value obtained by performing the URL encoding and the BASE64 encoding sequentially on this JSON object is used as the request body when calling the API.
    {
        "token": "1627881984263-jkx1B3GOY3EsJ",
        "pid": "20000009891"
    }
    // the URL encoding and BASE64 encoding result
    JTdCJTIydG9rZW4lMjIlM0ElMjIxNjI3ODgxOTg0MjYzLWpreDFCM0dPWTNFc0olMjIlMkMlMjJwaWQlMjIlM0ElMjIyMDAwMDAwOTg5MSUyMiU3RA==
    
    //Curl example. 
    // Call the API attaching the encoded param in the request body.
    curl -X POST https://weblogin.withhive.com/verify
        -H "Content-Type: application/json"
        -d "{'param': 'JTdCJTIydG9rZW4lMjIlM0ElMjIxNjI3ODgxOTg0MjYzLWpreDFCM0dPWTNFc0olMjIlMkMlMjJwaWQlMjIlM0ElMjIyMDAwMDAwOTg5MSUyMiU3RA=='}"
    
  • Response Body

    Returns a code that shows whether the verification was successful or not.

    Field Name Description Type Required
    code the result code for verification success int Y
     
    code Description
    100 Success
    500 the login internal server error (internal server error, such as unavailability of middleware server and unavailability of DB server connection)
    1050 The param value in the request body is not in Json format.
    1066 the request body does not exist.
    2005 the param value does not exist.
    2200 the token is not valid. the token has been expired or the token has already been used for verification.
    2201 the verification failed. the verification token value does not match.
    2202 the verification failed. the PlayerID for verification does not match.
  • Response Sample
    {
        "code": "100";
    }