@@ -14,10 +14,6 @@ standard autoloading support. It allows configuration to be read from the
1414environment, adds support to log requests and responses and provides a
1515simplified client wrapper class (` NetSuiteService ` ).
1616
17- | :warning : PHP5 support being discontinued in 2021|
18- | :---------------------------|
19- | Please see the [ roadmap] ( #roadmap ) for PHP support plans in the coming years.|
20-
2117* [ Installation] ( #installation )
2218* [ Quickstart] ( #quickstart )
2319 * [ w/Laravel] ( #laravel-integration )
@@ -43,7 +39,8 @@ composer require ryanwinchester/netsuite-php
4339#### Instantiating the NetSuiteService class:
4440
4541Any of the examples herein will assume you have already instantiated a client
46- object using one of the methods below.
42+ object using token-based authentication. The method of authenticating with
43+ user credentials was dropped from support by NetSuite in 2020.
4744
4845``` php
4946// Token-based Authentication
@@ -69,33 +66,6 @@ $config = [
6966];
7067$service = new NetSuiteService($config);
7168```
72-
73- ``` php
74- // Authentication with User Credentials
75- require 'vendor/autoload.php';
76-
77- use NetSuite\NetSuiteService;
78-
79- // *****
80- // No longer supported as of web services v2020.2, use TBA instead
81- // *****
82-
83- $config = [
84- // required -------------------------------------
85- "endpoint" => "2021_1",
86- "host" => "https://webservices.netsuite.com",
87- "email" => "jDoe@netsuite.com",
88- "password" => "mySecretPwd",
89- "role" => "3",
90- "account" => "MYACCT1",
91- "app_id" => "4AD027CA-88B3-46EC-9D3E-41C6E6A325E2",
92- // optional -------------------------------------
93- "logging" => true,
94- "log_path" => "/var/www/myapp/logs/netsuite",
95- ];
96- $service = new NetSuiteService($config);
97- ```
98-
9969You can alternatively place your config in environment variables. This is
10070helpful in hosted environments where deployment of config files is either
10171not desired or practical. You can find the valid keys in the included
0 commit comments