Read team chats with Keybase Chat API

See here for the original answer.

I found the problem, the Keybase API just wasn't very helpful with the provided error message.

You need to put quotes around the {} in the echo statement, like such:

cmd = "echo '{}' | keybase chat api > {}".format(q, json_out)

Tags

  1. keybase (Private)
  2. api (Private)
  3. python (Private)
  4. json (Private)
  5. stack-overflow (Private)
  6. answer (Private)