Page 1 of 1

Using http GET/POST/PUT methods from JADE

Posted: Tue Nov 09, 2010 1:49 pm
by avinashrao
Hi there,

I'm an old employee of Jade and I'm still using Jade for one of my side projects. I'm wanting to interface my Jade app with Xero accounting's web-based api which uses a REST based http interface - see http://blog.xero.com/developer/api-overview/. I'm wondering if there's a way to do straight http GET/PUT/POST requests from Jade?

I asked Anakin in qual and he reckoned this might be the best place to ask...

Thanks in advance for any help you can offer.

Avinash.

Re: Using http GET/POST/PUT methods from JADE

Posted: Tue Nov 09, 2010 3:51 pm
by BeeJay
You may find the properties and methods on the JadeHTTPConnection class in RootSchema useful for your requirements.

It's currently not hidden, you can see it if you open a Class browser against RootSchema, but it's also not currently mentioned in the documentation so it would appear to currently be an unpublished class. I'm not sure what that means as regards using this in production code, but perhaps someone from Jade Support can comment on the status of this class?

Note: I did use this class when I converted all the old Newsgroup postings over to these new style forums.

Cheers,
BeeJay.

Re: Using http GET/POST/PUT methods from JADE

Posted: Tue Nov 09, 2010 4:00 pm
by avinashrao
Thanks BeeJay,

Just had a quick look - I'll give that a try.

Cheers,

Avinash.