• Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    1. Home
    2. 李禹廷

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 0
    • Controversial 0
    • Groups 0

    李禹廷

    @李禹廷

    0
    Reputation
    3
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    李禹廷 Unfollow Follow

    Latest posts made by 李禹廷

    • RE: HttpBuilder Error

      @MattFox HI
      thank you sample it works well
      Tim

      posted in User help
      李禹廷
      李禹廷
    • RE: HttpBuilder Error

      my mango v4.3.5 install to PC

      posted in User help
      李禹廷
      李禹廷
    • HttpBuilder Error

      HI All
      I 'm sorry my English is not good
      I need Help
      use Global scripts HttpBuilder my program

      print(HttpBuilder.request({
          path: "https://notify-api.line.me/api/notify",
          method: "POST",
          headers: {
      "Authorization":"Bearer <my API key>",
      "ContentType":"application/x-www-form-urlencoded",
      "Accept": "application/json"
          },
          form:{
              "message":"test"
          },
          
          err: function(status, headers, content) { 
             throw "Request got bad response: "+ status;
          },
          resp: function(status, headers, content) { 
              print(content);
              return true; 
          },
          excp: function(exception) {
              throw exception.getMessage();
          }
      }))
      

      Error code:
      javax.script.ScriptException: Request got bad response: 400 in <eval> at line number 18 at column number 7

      use cmd.exe program
      curl -X POST -H "Authorization: Bearer <my API key>" -F "message=test" https://notify-api.line.me/api/notify

      it works well
      please help me thanks

      Tim

      posted in User help
      李禹廷
      李禹廷