Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mpapado3 opened this issue Jul 20, 2021 · 2 comments
Open

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

mpapado3 opened this issue Jul 20, 2021 · 2 comments
Labels
to look into Need to look into the issue

Comments

@mpapado3
Copy link

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
Copy link
Member

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.

@colinhall17 colinhall17 added the to look into Need to look into the issue label Aug 20, 2021
@AchrefRhm
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to look into Need to look into the issue
Projects
None yet
Development

No branches or pull requests

3 participants