twilio/twilio-php — pull request #68 by kevinburke (2012-06-04 23:33:42+00:00)
Title: Add deep paging support

Summary of changes:
- Add an extra next_page_uri property to the Page and AutoPagingIterator
classes. If specified, request this URI directly, instead of constructing it
from the Page and PageSize properties.
- Make each resource aware both of the HTTP client and of its URI
representation
- Remove or refactor extraneous functions
- Inline functions that were only called in one place
- Add tests for deep paging and to ensure only one copy of the HTTP client is
created.
- Remove all of the DataProxy classes. The idea is good but the extra layer of
abstraction makes it difficult to get at the HTTP client making requests, and
also to specify which URL you would like to load. In addition, the largest
library use case is mutative - making calls or sending SMS - which you cannot
cache.

Please look at pull request #66 and #67 before reviewing this one; they will reduce the size of the diff for this pull request.

I am also worried about the coverage of the existing tests; it may be good to review the tests for comprehensiveness, and to run our internal integration tests against this branch before merging.

Although the documented interface is not changing, I would suggest a version bump due to the large number of public functions which were deleted or moved - for example `getSchema`, `proxy->createData` and others.