class Multiwoven::Integrations::Destination::GoogleSheets::Client

def authorize_client(config)

To define the level of access granted to your app, you need to identify and declare authorization scopes which is provided by google scopse https://developers.google.com/sheets/api/scopes
def authorize_client(config)
  credentials = config[:credentials_json]
  @client = Google::Apis::SheetsV4::SheetsService.new
  @client.authorization = Google::Auth::ServiceAccountCredentials.make_creds(
    json_key_io: StringIO.new(credentials.to_json),
    scope: GOOGLE_SHEETS_SCOPE
  )
end