'Mounting Google drive on ubuntu

I am trying to mount google drive to Ubuntu. I am using google-drive-ocamlfuse

I got APPID and APPSECRET for drive-api. Everything works fine, I am able to mount using following

google-drive-ocamlfuse -headless -label $LABEL -id $APIID -secret $APISECRET
google-drive-ocamlfuse -label $LABEL $MOUNTPOINT

Problem: google-drive-ocamlfuse -headless gives a link that needs to opened in browser to get the verification code. Is there a way to get verification code without using browser?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source