Skip to content

Commit 0f2c3bf

Browse files
author
Austin Halpin
committed
Add contact mapping to AbstractPageIterator
1 parent 9708ad2 commit 0f2c3bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Intercom/Model/Iterators/AbstractPageIterator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ protected function getObjectKeyFromListType($type)
9595
return 'tags';
9696
case 'user.list':
9797
return 'users';
98+
case 'contact.list':
99+
return 'contacts';
98100
default:
99101
throw new IntercomException("Unknown list type returned ({$type}). Unable to use iterator to paginate");
100102
}

0 commit comments

Comments
 (0)