MacsiDigital / laravel-zoom

Laravel Zoom Package
MIT License
261 stars 135 forks source link

Call to a member function get() on null #101

Open mpapado3 opened 3 years ago

mpapado3 commented 3 years ago

I have installed the package to a laravel 8 project and followed the installation process mentioned on the readme. But I cannot do anything request to the API. For example when I try to create a user I get the error Call to a member function post() on null and when I try to get all meetings or all users I get Call to a member function get() on null. I have put the key and secret on .env file and published the vendor as described.

So my code is the below:

$zoom = new \MacsiDigital\Zoom\Support\Entry;
        $user = new \MacsiDigital\Zoom\User($zoom);

        $meeting = $zoom->meeting->make([
            'topic' => 'New meeting',
            'type' => 2,
            'start_time' => new Carbon('2021-08-12 10:00:00'), // best to use a Carbon instance here.
        ]);

$user2 = $zoom->user->create([ 'first_name' => 'Test', 'last_name' => 'User', 'email' => 'test@test.com', 'password' => 'some pass' ]);

colinhall17 commented 3 years ago

Hi @mpapado3

Thanks for getting in touch

I will look into the issue, I pretty much exclusively use facades so haven't come across any issue but will do some testing.

AchrefRhm commented 1 year ago

im getting the same problem did you know how to fix it??