public static function listing(
        int $attachmentTabId,
        int $monetaryAccountId = null,
        array $customHeaders = []
    ): BunqResponseString {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->get(
            vsprintf(
                self::ENDPOINT_URL_LISTING,
                [static::determineUserId(), static::determineMonetaryAccountId($monetaryAccountId), $attachmentTabId]
            ),
            [],
            $customHeaders
        );

        return BunqResponseString::castFromBunqResponse(
            new BunqResponse($responseRaw->getBodyString(), $responseRaw->getHeaders())
        );
    }
public static function listing(
        int $attachmentTabId,
        int $monetaryAccountId = null,
        array $customHeaders = []
    ): BunqResponseString {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->get(
            vsprintf(
                self::ENDPOINT_URL_LISTING,
                [static::determineUserId(), static::determineMonetaryAccountId($monetaryAccountId), $attachmentTabId]
            ),
            [],
            $customHeaders
        );

        return BunqResponseString::castFromBunqResponse(
            new BunqResponse($responseRaw->getBodyString(), $responseRaw->getHeaders())
        );
    }
public static function listing ( int $ attachmentTabId , int $ monetaryAccountId = null , array $ customHeaders = [ ] ) : BunqResponseString { $ apiClient = new ApiClient ( static :: getApiContext ( ) ) ; $ responseRaw = $ apiClient -> get ( vsprintf ( self :: ENDPOINT_URL_LISTING , [ static :: determineUserId ( ) , static :: determineMonetaryAccountId ( $ monetaryAccountId ) , $ attachmentTabId ] ) , [ ] , $ customHeaders ) ; return BunqResponseString :: castFromBunqResponse ( new BunqResponse ( $ responseRaw -> getBodyString ( ) , $ responseRaw -> getHeaders ( ) ) ) ; }
Get the raw content of a specific attachment.

This method is called "listing" because "list" is a restricted PHP word
and cannot be used as constants, class names, function or method names.

@param int $attachmentTabId
@param int|null $monetaryAccountId
@param string[] $customHeaders

@return BunqResponseString
Get the raw content of a specific attachment .