SetMeteredKey

Metered.SetMeteredKey method

设置计量公钥和私钥。 如果你购买了计量许可证,当启动应用程序时,应该调用这个 API,通常,这就足够了。但如果总是上传消费数据失败,超过24小时,License会被设置为评估状态,为避免这种情况,您应该定期检查License状态,如果是评估状态,请重新调用此接口。

public void SetMeteredKey(string publicKey, string privateKey)
范围 类型 描述
publicKey String 公钥
privateKey String 私钥

也可以看看