I am using Google Drive API with my Rails application. The API is working fine. I have the following client_secret.json file:
{ \"type\": \"service_account\",
Yes. It is possible to store json file in variable. However there is one small change needed :
\\\"type\\\": \\\"service_account\\\",
Do this for every double quote inside the curly braces of json.