Using OAuth 2.0 or Basic Auth

Please use OAuth 2.0 or HTTP Basic Auth. We think that writing another one OAuth guide would be waste of time, so if you need it, just use existing one, eg. https://developer.github.com/v3/oauth/

Remember to use correct endpoint URLs: