Using http GET/POST/PUT methods from JADE

Forums for specific tips, techniques and example code
avinashrao
Posts: 6
Joined: Tue Nov 09, 2010 1:41 pm

Using http GET/POST/PUT methods from JADE

Postby avinashrao » Tue Nov 09, 2010 1:49 pm

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.

User avatar
BeeJay
Posts: 312
Joined: Tue Jun 30, 2009 2:42 pm
Location: Christchurch, NZ

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

Postby BeeJay » Tue Nov 09, 2010 3:51 pm

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.

avinashrao
Posts: 6
Joined: Tue Nov 09, 2010 1:41 pm

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

Postby avinashrao » Tue Nov 09, 2010 4:00 pm

Thanks BeeJay,

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

Cheers,

Avinash.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 1 guest

cron