简体   繁体   English

如何在 twilio 分页 php 中获取最后一页 url

[英]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.我正在使用上面的代码获取下一页 url 并成功打印。 But i want to print last page url while In php twilio.但我想在 php twilio 中打印最后一页 url。 Anyone can tell me how can i get last page url using twilio php.任何人都可以告诉我如何使用 twilio php 获得最后一页 url。 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).看起来您需要以编程方式提取返回的范围并操作结果数据以获取 X 最新结果(最后一页)。

Replacing Absolute Paging and Related Properties 替换绝对分页和相关属性

Usage and Migration Guide for Twilio's PHP Helper Library 5.x Twilio 的 PHP 帮助程序库 5.x 的使用和迁移指南

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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