public static function getsessionIdApiCall($login, $password)
    {
        $sessionId = "";
        try {
            $response = self::$buzz->get(self::BASE_URL.'/User/sessionId?login='.$login.'&password='.$password);

            $sessionId = str_replace('"', '', $response->getContent());
        } catch (\Exception $e) {
            $errorInfo = json_decode($e->getMessage());
            throw (new \Exception($errorInfo->Desc, $errorInfo->Code));
        }

        return $sessionId;
    }
public static function getsessionIdApiCall($login, $password)
    {
        $sessionId = "";
        try {
            $response = self::$buzz->get(self::BASE_URL.'/User/sessionId?login='.$login.'&password='.$password);

            $sessionId = str_replace('"', '', $response->getContent());
        } catch (\Exception $e) {
            $errorInfo = json_decode($e->getMessage());
            throw (new \Exception($errorInfo->Desc, $errorInfo->Code));
        }

        return $sessionId;
    }
public static function getsessionIdApiCall ( $ login , $ password ) { $ sessionId = "" ; try { $ response = self :: $ buzz -> get ( self :: BASE_URL . '/User/sessionId?login=' . $ login . '&password=' . $ password ) ; $ sessionId = str_replace ( '"' , '' , $ response -> getContent ( ) ) ; } catch ( \ Exception $ e ) { $ errorInfo = json_decode ( $ e -> getMessage ( ) ) ; throw ( new \ Exception ( $ errorInfo -> Desc , $ errorInfo -> Code ) ) ; } return $ sessionId ; }
Session ID Queue

@access public
@static

@param string $login    User name
@param string $password Password

@return string          Session ID
@throws DevinoException
Session ID Queue