API-Verified Quest (RESTFUL)
How to set up custom quest using RESTful API.
Last updated
How to set up custom quest using RESTful API.
Last updated
# wallet address
curl https://<domain>/<serverpath>?address=<userAddress>&begin_time=<timestamp>&end_time=<timestamp># email
curl https://<domain>/<serverpath>?email=<userEmail>&begin_time=<timestamp>&end_time=<timestamp># Telegram id
curl https://<domain>/<serverpath>?telegram_id=<userTelegramId>&begin_time=<timestamp>&end_time=<timestamp># Line id
curl https://<domain>/<serverpath>?line_id=<userTelegramId>&begin_time=<timestamp>&end_time=<timestamp>{
"result":{ //required on success
"isValid":<true | false> //boolean: whether the user completed the quest.
},
"error":{ //required on error, this field MUST NOT exist if there was no error triggered during invocation.
"code":<error code>, //number
"message":"<error message>"
}
}