Invoke The API Service Using Generated Client SDK missions is broken

Where do you put this line of code? I am stuck on the same step as the OP with the same result.