CreateObject http not working RRS feed

  • Question

  • Dear Team
    i have wrinting a coding for below but not get report
    Error showing for     MyRequest.Send 
    Public Sub Send1()
        Dim apikey As String
        apikey = "apikey=" + "our Key"
        Dim Message As String
        Message = "&message=" + "This is your message"
        Dim sender As String
        sender = "&sender=" + "TXTLCL"
        Dim numbers As String
        numbers = "&numbers=" + "9112345784"
       Set MyRequest = CreateObject("WinHttp.WinHttpRequest.5.1")
       MyRequest.Open "post", "" + apikey + Message + sender + numbers
       MsgBox MyRequest.ResponseText
    End Sub
    Please refer below screen short
    Kindly check and revert 
    Monday, December 17, 2018 7:36 AM

All replies

  • Hi there,

    I ran your code without an error and just returned the following result:

    {"errors":[{"code":3,"message":"Invalid login details"}],"status":"failure"}

    Then I use the browser to access Key&message=This is your

    message&sender=TXTLCL&numbers=9112345784, and the same result occurs.

    What is the error you are referring to, a grammatical error or a result error?

    Best Regards,


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread.

    Tuesday, December 18, 2018 3:17 AM