Nice! Thanks for posting!
We’ve also got this in the edx-platform docs: Authentication Related Code Samples — edx-platform documentation
and How To Use the REST API — edx-platform documentation
Do you think it’s worth updating some of that with your examples and pictures?