Showing posts with label json. Show all posts
Showing posts with label json. Show all posts

2012/04/02

Building a PHPSuite while napping (pt. 2)


In the last post I discussed writing a general purpose restlet to allow scripting a Netsuite search in PHP. In this post we'll cover how PHP talks to Netsuite's restlet service, and in my next post (hopefully sooner than later) we'll cover implementing a search in PHP.


To start off we need to register our script from last time with Netsuite. Create a new Suitescript Restlet:



Building a PHPSuite while napping (pt. 1)


Netsuite's existing integration solution for PHP, the PHP Toolkit, is plenty powerful, but the minimalist documentation and disappointing end-product (SOAP solutions are so 2006) make it a bit of a PITA. The following came from some attempts to benchmark the existing SOAP solution against Netsuite's relatively recent RESTlet service (the results of which I will post another time. Long story short, REST really is the only solution you should for consideration)