documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Issue with API key SDK instructions - Java

Open billrich2001 opened this issue 8 months ago • 1 comments

Temporal Affiliation

  • [x] I am a Temporal employee

Page URL

https://docs.temporal.io/cloud/api-keys#java-sdk

Content Issue

Hi Docs team! Along this same vein the Java SDK docs for api keys (buried as mentioned above) isn't actually correct. It shows you using a function called .addApiKey that takes a lambda function that returns a string. That function doesn't exist. I did figure out how to make it work though here is a snippet that captures the essence, let me know if you want any clarification.

billrich2001 avatar May 07 '25 18:05 billrich2001

This only applies for SDK before v 1.8.1

billrich2001 avatar May 07 '25 19:05 billrich2001