i am trying to send this JSON and it keep returns me false: Reason: NO TOKEN. Is there anything wrong with the JSON string?
URL
http://123.123.123.123/php/push/push.php
JSON (my third party ask me to put it in the body and in JSON format)
{
"device":"Android",
"message":"Testing",
"Id":"15073116192095313120",
"img":"",
"token":[
"DJISIODJOIS485uhhhifsejf9fdg"
]
}
SEND REQUEST (do I need the ?data=)
http://123.123.123.123/php/push/push.php?data={"device":"Android","message":"Testing","Id":"15073116192095313120","img":"","token":["DJISIODJOIS485uhhhifsejf9fdg"]}
CODE BEHIND
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)