This YouTube API Ruby source code conducts the process of an OAuth2 authorization that verifies credential in a local file, and if the file is not found, it opens a script browser to wait for a response and returned local credentials to save.