Skip to content

pysnow.oauth_client.OAuthClient.resource should allow to pass request parameters (e.g. timeout) the same way pysnow.client.Client.resource does #200

@nkaraliova-godaddy

Description

@nkaraliova-godaddy

When using OauthClient, there is currently no way to overwrite the default 60 second timeout due to resource method signature of pysnow.oauth_client.OAuthClient not allowing to pass arbitrary kwargs.

# from pysnow.client.Client - resource signature:
def resource(self, api_path=None, base_path="/api/now", chunk_size=None, **kwargs)

# from pysnow.oauth_cleint.OAuthClient - resource signature:
def resource(self, api_path=None, base_path="/api/now", chunk_size=None)

Suggested fix: https://github.com/rbw/pysnow/pull/199/files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions