简体   繁体   中英

How to get last page url in twilio pagination php

$page = isset($input['page'])?$input['page']:0;
$perPageRecord = 10;
$calls = $this->twilio->calls->page(["to" => "+919876543210"],$perPageRecord,'',$page);
$data = [];
echo $calls->getNextPageUrl; 
exit;

I am using above code to get next page url and it print successfully. But i want to print last page url while In php twilio. Anyone can tell me how can i get last page url using twilio php. Thanks

It looks like you will need to programmatically extract a returned range and manipulate the resulting data to get the X most recent results (last page).

Replacing Absolute Paging and Related Properties

Usage and Migration Guide for Twilio's PHP Helper Library 5.x

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM