+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 21 to 26 of 26

Thread: N4 API data

  1. #21
    Join Date
    Jan 2003
    Location
    USA
    Posts
    9,437
    Post Likes
    Quote Originally Posted by lasnie View Post
    Hi. Is there a way to add header to GetHTTP block? I have API where i need to put credentials in header..
    Take the source and modify it yourself. This has been disused on source forge.
    Propagating the formula. http://www.noagendashow.com/

  2. #22
    Join Date
    May 2009
    Location
    SC
    Posts
    4,049
    Post Likes
    Quote Originally Posted by lasnie View Post
    Hi. Is there a way to add header to GetHTTP block? I have API where i need to put credentials in header..
    Even if this is HTTPS isn't this portion in the clear? Care about that login being lost?

  3. #23
    Join Date
    Jan 2003
    Location
    USA
    Posts
    9,437
    Post Likes
    Quote Originally Posted by MaxBurn View Post
    Even if this is HTTPS isn't this portion in the clear? Care about that login being lost?
    Don't believe is HTTPS which is why this is a whole can of worms and no one has bothered to add support for it.
    Propagating the formula. http://www.noagendashow.com/

  4. #24
    Join Date
    Sep 2020
    Location
    Sacramento CA
    Posts
    37
    Post Likes
    I am using GetHttp and am getting XML code on HTTP Out, what's the process of parsing out the data from the XML to something like NumericPoint?

    example;
    <?xml version="1.0" encoding="UTF-8"?>
    <result>
    <Thermostat>
    <heatSetting>70</heatSetting>
    <coolSetting>73</coolSetting>
    <temperature>70.5</temperature>
    </Thermostat>
    <success>1</success>
    </result>

  5. #25
    Join Date
    Jan 2003
    Location
    USA
    Posts
    9,437
    Post Likes
    Quote Originally Posted by DDCDan View Post
    I am using GetHttp and am getting XML code on HTTP Out, what's the process of parsing out the data from the XML to something like NumericPoint?
    The easy and ugly way, use the string manipulation blocks to search for the tags you want and pull out the values.
    The cleaner method, use a program block and write your own code to parse it out.
    Propagating the formula. http://www.noagendashow.com/

  6. Likes DDCDan liked this post.
  7. #26
    Join Date
    May 2022
    Posts
    1
    Post Likes
    Hello all,

    I am Fairly new to N4 but i am trying to expose the history data to external application using json toolkit.

    I need help on how can i parse the incoming payload sent as part of the http get and then process in my jsontoolkit inline writer

    I have tried json router and json demux router but they are separate items on my wiresheet. Is there a way to process inbound json payload and define the response based on it in same entity

+ Reply to Thread
Page 2 of 2 FirstFirst 12

Quick Reply Quick Reply

Register Now

Please enter the name by which you would like to log-in and be known on this site.

Please enter a password for your user account. Note that passwords are case-sensitive.

Please enter a valid email address for yourself.

Log-in

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •