code: func newPaginator(client *messagebird.Client, endpoint string, typ reflect.Type) *Paginator {
  	return &Paginator{
  		endpoint:   endpoint,
  		nextPage:   1, // Page indices start at 1.
  		structType: typ,
  		client:     client,
  	}
  }
docs: // newPaginator creates a new paginator.
  //
  // endpoint is called with the `page` query parameter until no more pages are
  // available.
  //
  // typ is the non-pointer type of a single element returned by a page.