PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, November 18, 2022

[FIXED] How to get last page url in twilio pagination php

 November 18, 2022     laravel, php, twilio, twilio-php     No comments   

Issue

$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


Solution

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



Answered By - Alan
Answer Checked By - Katrina (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing