How to make a http request or execute code ?

Support
  • Hi,
    I have the following code .. it runs fine everywhere. However in BAS, I cannot make this run.
    Can anyone help me in placing this code correctly via http request ?

    POST /mail/advsend HTTP/1.1
    Content-Type: application/json
    X-Api-Key: E9Zw9zQ7wt5oedmmGEICXVxTGkYPhmyBOLIztpcSg39lefAAqUCFSS9qBDfEc5AW6p6yB
    Host: api.mailbaby.net
    Content-Length: 456
    
    {
      "subject": "Headline news",
      "body": "Your Christmas weekend could involve scorching temperatures nearing 40C or hundreds of millimetres of rain depending on where you are",
      "from": {
        "email": "sender@gmail.com",
        "name": "TheManer"
      },
      "to": [
        {
          "email": "reciever@gmail.com",
          "name": "Jacobraj"
        }
      ],
     
      "attachments": [
        {
          "filename": "company_logo.png",
          "data": "string"
        }
      ],
      "id": 7000
    }
    

    Kindly note Api & ID is not the correct one.. just for example.

    If some one can post a correct script for above action, I will be most indebted.
    Thanks