Renamed Api.encode_credentials to Api.credentials and deprecated the old name.
Release 3.6.1.