Closed laconc closed 5 years ago
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.
client = dw.api_client()
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.
client = dw.api_client
The tests are failing but I assume that's unrelated to this PR since all I'm changing is the README.
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.