Seems so simple from https://developers.google.com/accounts/docs/OAuth2ForDevices:
Like all OAuth2 scenarios, you will first need to register your application > with Google through the Developer > Console<https://code.google.com/apis/console#access>. > To proceed with this flow, you will need the client_id andclient_secret > created > during application registration, and you will need to embed them in your > application. > After you have the client_id and client_secret, you send an HTTP POST to > the OAuth 2.0 device endpoint at > https://accounts.google.com/o/oauth2/device/code with your client_id and > a list of scopes. Unlike the other OAuth2 flows, response_type and > redirect_uri are not needed in the device flow. However when I POST to https://accounts.google.com/o/oauth2/device/code?scope=https://www.google.com/m8/feeds/&client_id=[my ID] I get 405 Method Not Allowed -- You received this message because you are subscribed to the Google Groups "OAuth" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
