christopher-dG / go-obs-websocket

Go client for obs-websocket
MIT License
85 stars 26 forks source link

Updated bindings #2

Open muesli opened 4 years ago

muesli commented 4 years ago

It would be nice to have updated bindings to support newly implemented API functionality. Could you also document how you generated the sources, because I can't quite figure out how codegen/protocol.py is meant to be called.

Thank you!

abourget commented 4 years ago

See #3

afriza commented 4 years ago

Could you also document how you generated the sources, because I can't quite figure out how codegen/protocol.py is meant to be called.

You can call it as follow:

  1. get a snapshot of comments.json
  2. call it with comments.json and --all as parameters
    cd /path/to/go-obs-websocket
    curl -o codegen/comments.json https://github.com/Palakis/obs-websocket/raw/4.7.0/docs/generated/comments.json
    python3 codegen/protocol.py codegen/comments.json --all

    Note that you might need to adjust protocol.py to accept newer version of comments.json