LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  HTTP-node - Harvest API (can't get it tot work)

    Employee
    Posted 05-23-2014 11:58

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: SambaDancer

    Dear community,

    I'm experimenting with the HTTP-node. I've already managed to get some wheather forecasts, but that was pretty easy.
    Now I'm trying for something more difficult: the Harvest API. I'd like to extract some info about my timesheets.
    I can't seem to get this to work, though, based on the examples on the Harvest API on GitHub.
    The main reason is that all examples are based on Python, Ruby, PHP etc. (and I don't have the faintest idea about these;-)

    The closest example to the http-request Lavastorm expects is the one using CURL:

    curl -H 'Content-Type: application/xml' -H 'Accept: application/xml' -u "user@example.com:password" https://subdomain.harvestapp.com/account/who_am_i

    I have tried to convert this to a http-request using my own credentials, but it doesn't work. The most response I get is that I'm using an unsupported browser...

    Who can offer some help? Surely someone has gone through the same process? ;-)

    thanks in advance & greetings from The Netherlands,

    Bart.


  • 2.  RE: HTTP-node - Harvest API (can't get it tot work)

    Employee
    Posted 05-23-2014 12:27

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: stonysmith

    I did something similar to this. I had to make it a two-step process. The first HTTP node does the login itself, gathers the returned Session Cookies, and passed them to a second HTTP node that then reads the actual page I wanted to pick up.


  • 3.  RE: HTTP-node - Harvest API (can't get it tot work)

    Employee
    Posted 05-23-2014 23:23

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: SambaDancer

    Oohh, that sounds both interesting �nd a bit difficult ;-)
    You don't, by any chance, have an example?
    More in general, is there a standard method to 'translate' this curl, php, ruby or python code into a single-line http-request? To me, that's the part I find most difficult because no example code is then available.
    thanks!
    Bart Roeleveld
    (Coney, The Netherlands).


  • 4.  RE: HTTP-node - Harvest API (can't get it tot work)

    Employee
    Posted 05-26-2014 10:44

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: SambaDancer

    I've done it! And it can be done in 1 go!
    Anyone interested can contact me: -)