Syntax
| Internet.PostJSON( URLName, jsonRequest, jsonResponse[, Headers])
| ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Description
| Send a POST-request formatted in JSON format to the specified URL. If the request was handled successfully, the function returns True, otherwise False.
| ||||||||||
See Also
| |||||||||||
Example
| Sub Main
Dim MyURL As String, Request As String, Response As String
MyURL = "https://api.fiscallog.eu/sign/v1"
Request = EncodeJSON("Amount", 123.45, "VAT", 31.57)
If Internet.PostJSON(MyURL, Request, Response, "Client-ID", "my_client_id", "Client-Token", "my_client_token") Then
Msgbox Response
Else
Msgbox "No Success..."
End If
End Sub
|