class KlaviyoAPI::Collections::ListMembershipCollection

ListMembershipCollection, as opposed to ListMemberCollection. This is a collection of ListMembers, but specifically in the context of the Group Memberships endpoint of a List. (www.klaviyo.com/docs/api/v2/lists#get-members-all)

Public Instance Methods

next_page() click to toggle source
# File lib/klaviyo_api/collections/list_membership_collection.rb, line 9
def next_page
  # Return empty collection if no other pages
  return self.class.new unless more_pages?

  KlaviyoAPI::ListMember.all_members params: { **first.prefix_options, **original_params, "#{next_page_marker_name}": marker }
end