go-obs-websocket icon indicating copy to clipboard operation
go-obs-websocket copied to clipboard

Updated bindings

Open muesli opened this issue 5 years ago • 2 comments

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!

muesli avatar Feb 05 '20 20:02 muesli

See #3

abourget avatar Mar 18 '20 03:03 abourget

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

afriza avatar May 03 '20 16:05 afriza