Querying

Attachments are queried from the context of a VoiceLayerChannel.

Get Attachments

channel.getAttachments(page, pageSize);

or

channel.getAttachments(page, pageSize, new VoiceLayerFetchCallback<PaginatedResponse<List<VoiceLayerAttachment>>>() {
    @Override
    public void onFetchComplete(PaginatedResponse<List<VoiceLayerAttachment>> response, VoiceLayerException exception) {
        List<VoiceLayerAttachment> attachments = response.getResult();
    }
});