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

Fixing references to api_client #104

Merged
merged 3 commits into from
May 9, 2019
Merged

Fixing references to api_client #104

merged 3 commits into from
May 9, 2019

Conversation

laconc
Copy link
Contributor

@laconc laconc commented Sep 11, 2018

The docs suggest that an api client can be called as such: client = dw.api_client(). That gave us the issue: TypeError: 'RestApiClient' object is not callable.

Looking at https://github.com/datadotworld/data.world-py/blob/master/datadotworld/datadotworld.py#L59, the correct way to use it appears to be: client = dw.api_client, since it's an attribute and not a function. Making that change resolved my issue.

@laconc laconc requested a review from rflprr September 11, 2018 17:22
@laconc
Copy link
Contributor Author

laconc commented Sep 11, 2018

The tests are failing but I assume that's unrelated to this PR since all I'm changing is the README.

@laconc laconc requested review from markmarkoh and removed request for rflprr March 28, 2019 22:09
@laconc laconc merged commit bbee8a1 into master May 9, 2019
@laconc laconc deleted the laconc-patch-1 branch May 9, 2019 19:46
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

Successfully merging this pull request may close these issues.

2 participants