Use API calls to fetch the access token and access secret from the command line. And store it to some preferences file for later use.