[fix] don't use a deprecated method
Merge pull request #95 from wallner/registration_api_uses_current_api

[fix] don't use a deprecated method