Login

Dokumentasi ini menjelaskan cara mengakses layanan API GoTravelly untuk method Login.

API berfungsi untuk mendapatkan data penting pengguna yang masuk ke GoTravelly.

Method & URL

Method URL
POST https://www.gotravelly.com/api/login

Request & Response


POST (Request)

Method Parameter Tipe Wajib Keterangan
POST/BODY identity_login String Ya Username atau Alamat E-mail pengguna
POST/BODY password_login String Ya Password Login

POST (Response)


Success Response (200)
{
    "status": "SUCCESS",
    "message": {
        "id": "702",
        "username": "sbe8794",
        "key": "00co4k4k04k80oo8488kocscwk8k4gsg0c4ggk0c",
        "guide_login_id": "232",
        "guide_username": "sbe8794"
    }
}

Failed Response (400)
{
    "status": "FAILED",
    "message": {
        "username": "<p>The username/email field is required.</p>",
        "password": "<p>The password field is required.</p>"
    }
}

Atau

{
    "status": "FAILED",
    "message": "

Username / Email not registered

" }

Atau

{
    "status": "FAILED",
    "message": "

Wrong password

" }

Atau

{
    "status": "FAILED",
    "message": "

Account is inactive, Please check your email to activate first!

" }