16.07.2018 - The Trick to OAuth 2.0 on the Command Line will do this, adapted from a real command line tool that does this written by Christian Weiske..