Endpoint was not working with the "friends" type because this.endpoint
was not valid in the context of the object.
Merge pull request #324 from DaviRyan/ChangeSmartcloudSamplesToUseSmartcloudEndpoint

Endpoint was not working with the "friends" type because this.endpoint