1

我正在尝试授权应用程序拥有的(服务)用户。我在控制台中这样做:

client = Google::APIClient.new
key = Google::APIClient::PKCS12.load_key('/path/to/privatekey.p12', 'notasecret')
service_account = Google::APIClient::JWTAsserter('me@developer.gserviceaccount.com','https://www.googleapis.com/auth/prediction',key)

最后一步失败:

NoMethodError:Google::APIClient:Class 的未定义方法“JWTAsserter”

我看到版本 < 0.44 中报告了类似的问题,但我使用的是 v 0.5.0

4

0 回答 0