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

PHP Lib: Zello object data not cleared out between calls #14

Open
turbo2ltr opened this issue Mar 30, 2021 · 0 comments
Open

PHP Lib: Zello object data not cleared out between calls #14

turbo2ltr opened this issue Mar 30, 2021 · 0 comments

Comments

@turbo2ltr
Copy link

Make a call to getUsers for a user that doesn't exist. A 404 is returned as expected.

ZelloServerAPI Object
(
    [version] => 1.1.0
    [data] => Array
        (
        )

    [errorCode] => 404
    [errorDescription] => User not found
    [curlErrorDescription] => 
    [sid] => ***
    [lastUrl] => ***//user/get/login/mm%40aol.com?rnd=***&sid=***
    [host:protected] => https://***.zellowork.com/
    [api_key:protected] => ***
    [curlConnectionTimeout:protected] => 
    [curlExecutionTimeout:protected] => 
)

Using the same object, create a new API call to getChannels for a channel that does exist and the 200 is returned but still containing the 404 error code.

ZelloServerAPI Object
(
    [version] => 1.1.0
    [data] => Array
        (
            [status] => OK
            [code] => 200
            [channels] => Array
                (
                    [name] => Peoria E2
                    *** SNIP ***
                )
        )

    [errorCode] => 404
    [errorDescription] => User not found
    [curlErrorDescription] => 
    [sid] => ***
    [lastUrl] => https://***.zellowork.com//channel/get/name/Peoria+E2?rnd=***&sid=***
    [host:protected] => https://***.zellowork.com/
    [api_key:protected] => ***
    [curlConnectionTimeout:protected] => 
    [curlExecutionTimeout:protected] => 
)

I would expect the object to be reset on a new API call or am I mistaken?

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

No branches or pull requests

1 participant