yii2-netsuite NetSuite fun for Yii2

Yii2 NetSuite plugin

  1. Configuration
  2. Usage Example
  3. Links

A NetSuite plugin for Yii2

Configuration

In your configuration file(s), for example; main.php:

'ns' => [
	'class' => 'sammaye\netsuite\NetSuite',
	'host' => 'https://webservices.netsuite.com',
	'role' => 3,
	'email' => 'email_for_user@whatever.co.uk',
	'account' => '######',
	'password' => 'lalalalaomg'
],

Usage Example

$service = Yii::$app->ns->service;

$request = new \GetDataCenterUrlsRequest();
$request->account = Yii::$app->ns->account;
$Response = $service->getDataCenterUrls($request);
	
if(!$Response->getDataCenterUrlsResult->status->isSuccess){
}else{
	$rest = $Response->getDataCenterUrlsResult->dataCenterUrls->restDomain;
	$system = $Response->getDataCenterUrlsResult->dataCenterUrls->systemDomain;
	$webservices = $Response->getDataCenterUrlsResult->dataCenterUrls->webservicesDomain;
}

Links

0 0
1 follower
0 downloads
Yii Version: 2.0
License: BSD-2-Clause
Category: Web Service
Tags: netsuite
Developed by: Sammaye
Created on: Aug 26, 2016
Last updated: 8 years ago