Consuming RESTful Services

(Ben Lake) #1

Is there a way within a SmartApp to perform an HTTP PUT/HEAD request? The HTTP methods currently available are wrappers to lower level libs, which is understandable, but is there a means of performing RESTful calls currently? Perhaps on the horizon?

I’ll just brute force it with a proxy if need be! :slight_smile:

(Bob Florian) #2

Although they are missing from the documentation, there are httpPut methods that will allow you to make PUT requests. The same options are available as for httpPost. Unfortunately  HEAD is not there now.  We’ll add it and update this thread, and the documentation, when it becomes available. That should be Thursday or Friday of this week.

(Ben Lake) #3

Awesome. Thank you.

(Ben Lake) #4

I forgot to ask about arbitrary header support. Any chance that will be available?

(Ben Lake) #5

bump @bflorian HEAD happen to show up yet?

(Bob Florian) #6

Yes, the HEAD method is now supported with httpHead.

(Ben Lake) #7

Great, thanks!