JSON结果保持返回false

时间:2015-09-08 02:31:22

标签: asp.net json vb.net

我正在尝试发送此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)

0 个答案:

没有答案