我正在尝试发送此JSON并且它一直让我返回false:Reason:NO TOKEN。 JSON字符串有什么问题吗?
网址
http://123.123.123.123/php/push/push.php
JSON (我的第三方要求我将其放入正文并采用JSON格式)
{
"device":"Android",
"message":"Testing",
"Id":"15073116192095313120",
"img":"",
"token":[
"DJISIODJOIS485uhhhifsejf9fdg"
]
}
发送请求(我需要?data = )
http://123.123.123.123/php/push/push.php?data={"device":"Android","message":"Testing","Id":"15073116192095313120","img":"","token":["DJISIODJOIS485uhhhifsejf9fdg"]}
代码背后
Dim data As String
data += "{""device"":""" + Device
data += """,""" + "message"":""" + Message
data += """,""" + "Id"":""" + ID
If Device="Android" Then data += """,""" + "img"":""" + Img
data += """,""" + "token"":[""" + token + """]"
data += "}"
Dim URL As String = Convert.ToString(http://123.123.123.123/php/push/push.php & "?") + data
' ## Perform an HTTP Get Request
Dim response As String = PerformHTTPGet(URL)