sammaye/yii2-netsuite A Yii2 ext for the NetSuite API

extensionyii2-extensionsammayeyii2extensionnetsuite

Yii2 NetSuite plugin

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

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.0 is the latest of one release



BSD-3-Clause license
Stats
0 github stars & 0 github forks
0 downloads in the last day
0 downloads in the last 30 days
0 total downloads