26.10.2017, 10:03
(This post was last modified: 26.10.2017, 10:09 by phongvucba.)
Oh, thank so much admin !
If the value of his "anh" is Json, how to get that value "balance number" on alert or send sms to the user?
---------------
{ "status": "success", "code": "00", "data": { "email": "your email address", "balance": "balance number", "currency": "VND" } }
---------------
local anh = http.request {
url = "http://api.speedsms.vn/index.php/user/info",
headers = { Authorization = "Basic " .. (mime.b64("kuDkYXtIBidDjCRmN8z_Yt9U12Dbs8TZ:x")) }
}
--------------------
Thank admin with this help!
If the value of his "anh" is Json, how to get that value "balance number" on alert or send sms to the user?
---------------
{ "status": "success", "code": "00", "data": { "email": "your email address", "balance": "balance number", "currency": "VND" } }
---------------
local anh = http.request {
url = "http://api.speedsms.vn/index.php/user/info",
headers = { Authorization = "Basic " .. (mime.b64("kuDkYXtIBidDjCRmN8z_Yt9U12Dbs8TZ:x")) }
}
--------------------
Thank admin with this help!