Fix bug in friends endpoint
SDK Refactoring