usulix / laravel-netsuite Goto Github PK
View Code? Open in Web Editor NEWa Laravel 5 package to ease NetSuite Webservice and Restlet consumption
License: MIT License
a Laravel 5 package to ease NetSuite Webservice and Restlet consumption
License: MIT License
When trying to use restlet service this check - line 32 - RestletService.php
if (array_key_exists('password', $arrConfig)) {
always returns true, the ConfigService.php function getRestletConfig should remove password from the arrConfig.
I am trying to install the package on a fresh install of laravel and says it will only work with 5.2.*, any way to get around this?
- Installation request for usulix/laravel-netsuite dev-master -> satisfiable by usulix/laravel-netsuite[dev-master].
- usulix/laravel-netsuite dev-master requires laravel/framework 5.2.* -> satisfiable by laravel/framework[5.2.41, 5.2.x-dev, v5.2.0, v5.2.0-beta1, v5.2.1, v5.2.10, v5.2.11, v5.2.12, v5.2.13, v5.2.14, v5.2.15, v5.2.16, v5.2.17, v5.2.18, v5.2.19, v5.2.2, v5.2.20, v5.2.21, v5.2.22, v5.2.23, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.29, v5.2.3, v5.2.30, v5.2.31, v5.2.32, v5.2.33, v5.2.34, v5.2.35, v5.2.36, v5.2.37, v5.2.38, v5.2.39, v5.2.4, v5.2.40, v5.2.42, v5.2.43, v5.2.44, v5.2.45, v5.2.5, v5.2.6, v5.2.7, v5.2.8, v5.2.9] but these conflict with your requirements or minimum-stability.
Just wondering if you can push a v1.0.1 update to push changes from master into a new semver release.
Thanks.
Hi,
Just wondering if you can do a version bump, and support the newer versions from Ryan Winchester's library.
ie. "ryanwinchester/netsuite-php": "v2018.2.0"
Also, any chance of a semver update so instead of using "dev-master" one can use "^1.0" etc.
Reason being, when running a "composer validate", this is the only package I have alerts for... "unbound version constraints (dev-master) should be avoided"
Can do a pull request if you dont have time.
Many thanks in advance.
PS: this package helps me greatly. Please keep it up and updated.
Cheers.
Hello,
I am trying to get your package running as a proof of concept. I am getting the error Call to a member function get() on null
when I try to make the call from the readme
My code:
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use NetSuite\Classes\GetRequest;
use NetSuite\Classes\RecordRef;
class HomeController extends Controller
{
public function index ()
{
$myWebService = app('Usulix\NetSuite\NetSuiteService')->getService();
$request = new GetRequest();
$request->baseRef = new RecordRef();
$request->baseRef->internalId = "57190";
$request->baseRef->type = "customer";
$getResponse = $myWebService->get($request);
if ( ! $getResponse->readResponse->status->isSuccess) {
echo "GET ERROR";
} else {
$customer = $getResponse->readResponse->record;
}
dd($customer);
}
}
My ENV
NETSUITE_ENDPOINT=2018_2
NETSUITE_WEBSERVICES_HOST=https://webservices.sandbox.netsuite.com
NETSUITE_ACCOUNT=*******_SB1
NETSUITE_CONSUMER_KEY=***********
NETSUITE_CONSUMER_SECRET=***********
NETSUITE_TOKEN=***********
NETSUITE_TOKEN_SECRET=***********
I am using a token and secret for a full access user
Are you able to provide any direction as to why I am getting null out of $myWebService = app('Usulix\NetSuite\NetSuiteService')->getService();
Hi,
Started a brand new app, fresh install of Laravel 5.6, added the usulinx/laravel-netsuite via composer, then edited "config/app.php".
As soon as the "NetSuiteServiceProvider" line was added, if you try to use artisan, ie. "php artisan package:discover" it throws errors.
The "getMonolog()" call does not appear to be available...
Any ideas/suggestions to get it working?
$$ php artisan package:discover
Symfony\Component\Debug\Exception\FatalThrowableError : Call to undefined method Monolog\Logger::getMonolog()
at /wattsie/vendor/laravel/framework/src/Illuminate/Log/Logger.php:276
272| * @return mixed
273| */
274| public function __call($method, $parameters)
275| {
> 276| return $this->logger->{$method}(...$parameters);
277| }
278| }
279|Exception trace:
1 Illuminate\Log\Logger::__call("getMonolog", [])
/wattsie/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:6022 Illuminate\Log\LogManager::__call("getMonolog", [])
/wattsie/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:221
Previously, during the construction of the configurations, env variables
NETSUITE_WEBSERVICES_HOST
and
NETSUITE_RESTLET_HOST
were supported.
Now it seems like only 1 env variable is supported
NETSUITE_HOST
Hi,
Found an issue in src/Services/ConfigService.php
There is a double $ in the return statement for "getWebservicesConfig".
I can submit a patch my tomorrow unless you can patch and push new v1.0.1
Many thanks.
Howdy,
Just wondering if you can update Packagist.
https://packagist.org/packages/usulix/laravel-netsuite
Doesn't show v1.0.2 as a valid release.
Many thanks.
Cheers.
In composer, the minimum version is Laravel 6, but in the description is version 5.
Any chance you have a basic suite of RESTlets that expose CRUD operations on the basic objects?
Getting this error
Return value of Usulix\NetSuite\Providers\NetSuiteServiceProvider::register() must be an instance of Usulix\NetSuite\Providers\void, none
Adding :void to the functions makes this incompatible for PHP versions < 7.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.