OAuth Examples for Foreman?

I can see that foreman has oath available, and I am given or can generate a
key and a secret. However, I am having a tough time of figuring out where
to go from there. Is this OAuth version 1, 2? Is there an easy way to tell
the difference?

Any example code and explanations would be great, python would be best, but
I won't complain about any code really that points me in the right
direction. I am, as folks can probably tell, completely new to this oauth