Skip to content

Conversation

@ardeois
Copy link

@ardeois ardeois commented Mar 22, 2016

Add parameter use_http_post=True in ubersmith_client.api.init so instead of defaulting to GET, it can default to POST
POST request body is now verified in tests

Also fixes code so the example in the README works

POST request `body` is now verified in tests

Also fixes code so the example in the README works

def init(url, user, password, timeout=60):
return UbersmithApi(url, user, password, timeout)
def init(url, user, password, timeout=60, use_http_post=False):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please document this new parameter and what it does.

@ardeois
Copy link
Author

ardeois commented Mar 22, 2016

Updated according to comments

@Marx314
Copy link

Marx314 commented Mar 22, 2016

👍

1 similar comment
@maxc0c0s
Copy link

👍

@maxc0c0s maxc0c0s merged commit 67abd3e into internap:master Mar 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants