How to use getUsers endpoint?

That post you’ve linked is 4 years old, so yes it’s out of date. All API requests require an OAuth token now, as shown in the documentation for the Get Users endpoint.

You can get an OAuth token by following the Authentication Documentation and choosing whichever auth flow best suits your application.