public function getActivityDetails($encryptedConnectToken = null)
    {
        if (!$encryptedConnectToken && array_key_exists('token', $_GET)) {
            $encryptedConnectToken = $_GET['token'];
        }

        $receipt = $this->getReceipt($encryptedConnectToken);

        // Check response was successful
        if ($receipt->getSharingOutcome() !== self::OUTCOME_SUCCESS) {
            throw new ActivityDetailsException('Outcome was unsuccessful', 502);
        }

        return new ActivityDetails($receipt, $this->pemContent);
    }
public function getActivityDetails($encryptedConnectToken = null)
    {
        if (!$encryptedConnectToken && array_key_exists('token', $_GET)) {
            $encryptedConnectToken = $_GET['token'];
        }

        $receipt = $this->getReceipt($encryptedConnectToken);

        // Check response was successful
        if ($receipt->getSharingOutcome() !== self::OUTCOME_SUCCESS) {
            throw new ActivityDetailsException('Outcome was unsuccessful', 502);
        }

        return new ActivityDetails($receipt, $this->pemContent);
    }
public function getActivityDetails ( $ encryptedConnectToken = null ) { if ( ! $ encryptedConnectToken && array_key_exists ( 'token' , $ _GET ) ) { $ encryptedConnectToken = $ _GET [ 'token' ] ; } $ receipt = $ this -> getReceipt ( $ encryptedConnectToken ) ; // Check response was successful if ( $ receipt -> getSharingOutcome ( ) !== self :: OUTCOME_SUCCESS ) { throw new ActivityDetailsException ( 'Outcome was unsuccessful' , 502 ) ; } return new ActivityDetails ( $ receipt , $ this -> pemContent ) ; }
Return Yoti user profile.

@param null|string $encryptedConnectToken

@return ActivityDetails

@throws ActivityDetailsException
@throws Exception\ReceiptException
Return Yoti user profile .