As the methodes like NewBasicAuthenticator etc. are deprecated, is there an updated of example of how to use this package?