<Google Api translate authentication without envir...
# stackoverflow
u
Google Api translate authentication without environment variables I'm trying to use Google translate API without using environment variables, but it seems I'm missing something. Here's the kotlin code I'm using: import com.google.auth.oauth2.ServiceAccountCredentials import com.google.cloud.translate.Translate import com.google.cloud.translate.TranslateOptions import java.io.FileInputStream class StringsTranslator { companion object { @JvmStatic fun main(args: Array) { TranslateOptions.newBuilder().credentials =...