Announcement

Collapse
No announcement yet.

URLAction Multiple Headers

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • URLAction Multiple Headers

    Can anyone help with hs.URLAction? I have a call with a URL and three headers

    Accept: application/json
    x-ibm-client-id: 1111-111-111111-1111
    x-ibm-client-secret: kejcfkrjnklrejgc;kerjvnkchg;jkrtghn

    I have tried this
    result = hs.URLAction(URL, "GET", "", "accept: application/json, x-ibm-client-id: 1111-111-111111-1111, x-ibm-client-secret: kejcfkrjnklrejgc;kerjvnkchg;j")

    I just get errors no matter how I format the headers!
    Any help appreciated !!

    (the keys are not real/valid)

    Cheers
    Scott

  • #2
    Typically if I need to do something more complex with headers, I use the .NET functions (https://docs.microsoft.com/en-us/dot...tframework-4.8) rather than the built-in HS command. Do some Googling and you should be able to find some good examples.
    HS 3.0.0.548: 1976 Devices 1156 Events
    Z-Wave 3.0.1.262: 123 Nodes on one Z-Net

    Comment


    • #3
      Cheers Sparkman, that was going to be my next move. BTW, I work in the UK for CNR who are in Calgary!

      Comment

      Working...
      X