public function convertAvatar($projectId, $cropperWidth, $cropperOffsetX, $cropperOffsetY, $needsCropping)
    {
        return $this->apiClient->callEndpoint(
            sprintf('%s/%s/avatar', self::ENDPOINT, $projectId),
            array(
                "cropperWidth" => $cropperWidth,
                "cropperOffsetX" => $cropperOffsetX,
                "cropperOffsetY" => $cropperOffsetY,
                "needsCropping" => $needsCropping
            ),
            HttpMethod::REQUEST_POST
        );
    }
public function convertAvatar($projectId, $cropperWidth, $cropperOffsetX, $cropperOffsetY, $needsCropping)
    {
        return $this->apiClient->callEndpoint(
            sprintf('%s/%s/avatar', self::ENDPOINT, $projectId),
            array(
                "cropperWidth" => $cropperWidth,
                "cropperOffsetX" => $cropperOffsetX,
                "cropperOffsetY" => $cropperOffsetY,
                "needsCropping" => $needsCropping
            ),
            HttpMethod::REQUEST_POST
        );
    }
public function convertAvatar ( $ projectId , $ cropperWidth , $ cropperOffsetX , $ cropperOffsetY , $ needsCropping ) { return $ this -> apiClient -> callEndpoint ( sprintf ( '%s/%s/avatar' , self :: ENDPOINT , $ projectId ) , array ( "cropperWidth" => $ cropperWidth , "cropperOffsetX" => $ cropperOffsetX , "cropperOffsetY" => $ cropperOffsetY , "needsCropping" => $ needsCropping ) , HttpMethod :: REQUEST_POST ) ; }
Converts temporary avatar into a real avatar

@param int|string $projectId
@param int $cropperWidth
@param int $cropperOffsetX
@param int $cropperOffsetY
@param bool $needsCropping
@return mixed
Converts temporary avatar into a real avatar