Demo entry 2702490

Response Format

   

Submitted by anonymous on Sep 18, 2015 at 09:53
Language: JavaScript. Code size: 621 Bytes.

// success
{
  "meta": {
    "code": 200,
    "message": Request success
  },
  "data" {
    // generated using some algorithm
    "loginToken": "j34h9eif2dkahsdwherb2o34jbdd",
    // or "no". If "no", no need to include response below
    "registered": "yes", 
    "profile": {
      // url of the images
      "image": "https://images.akupeduli.org/sadfwerwa",
      "name": "Muhammad Fauzil Haqqi"
    }
  }
}

// failed
{
  "meta": {
    "code": 400,
    "message": "Verification code is not valid"
  },
  "data": {
    // entered verification code
    "verificationCode": "123142" 
  }
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).