sammaye/yii2-netsuite

A Yii2 ext for the NetSuite API

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.0 2016-08-26 10:39 UTC

This package is not auto-updated.

Last update: 2024-11-07 03:10:00 UTC


README

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