Git Product home page Git Product logo

laravel-netsuite's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

laravel-netsuite's Issues

Restlet Config Issue

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.

Working with Laravel 5.4

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.

Versioning

Just wondering if you can push a v1.0.1 update to push changes from master into a new semver release.

Thanks.

Updates

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.

Call to a member function get() on null

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();

Getting Laravel 5.6.* and Netsuite working

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:602

2 Illuminate\Log\LogManager::__call("getMonolog", [])
/wattsie/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:221

Patch to ConfigService.php

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.

Laravel version

In composer, the minimum version is Laravel 6, but in the description is version 5.

RESTlet suite

Any chance you have a basic suite of RESTlets that expose CRUD operations on the basic objects?

void return type

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.