It didn’t change, the functionality was never there. The API only ever existed in that answer, otherwise a Microsoft API would have left traces elsewhere on the Internet.
Maybe mistook Java for being C# or PHP and replied with another language and framework in mind. Just guessing, I am. Or wrote pseudo code, but forgot to mention this?
If the answer is from 8 years ago, did the API change between then and now? Or was the answer for the same version that you are using?