json - python slackclient userslist -


i trying use python slackclient. getting json.decoder.jsondecodeerror: expecting value: line 1 column 1 (char 0) error this, print (slack_client.api_call("users.list")) in below code. tried this, still getting error, print (json.loads(slack_client.api_call("users.list"))) please suggest wrong, first 2 api calls works fine , return result. users list api call giving me error

print (slack_client.api_call("api.test")) print (slack_client.api_call("auth.test")) print (slack_client.api_call("users.list"))  traceback (most recent call last):   file "print_bot_id.py", line 15, in <module>     print (slack_client.api_call("users.list"))   file "/users/vt/anaconda3/lib/python3.6/site-packages/slackclient/_client.py", line 83, in api_call     result = json.loads(self.server.api_call(method, timeout=timeout, **kwargs))   file "/users/vt/anaconda3/lib/python3.6/json/__init__.py", line 354, in loads     return _default_decoder.decode(s)   file "/users/vt/anaconda3/lib/python3.6/json/decoder.py", line 339, in decode     obj, end = self.raw_decode(s, idx=_w(s, 0).end())   file "/users/vt/anaconda3/lib/python3.6/json/decoder.py", line 357, in raw_decode     raise jsondecodeerror("expecting value", s, err.value) none json.decoder.jsondecodeerror: expecting value: line 1 column 1 (char 0) 

@smarx , curl users.list endpoint returns nothing, there different end point

    $ curl -x post https://slack.com/api/api.test?token='abc' {"ok":true,"args":{"token":"abc"}} m-c02kl0b1fft4:slack_bot vt$ curl -x post https://slack.com/api/users.list?token='abc' $ 


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -