Closed pdewouters closed 8 years ago
You will need to get it from the response of an API request using PSR-7 methods:
$request = $provider->getAuthenticatedRequest(...);
$response = $provider->getHttpClient()->send($request);
$link = $response->getHeader('Link');
So there's no methods to help with pagination in the library?
This package is only an OAuth2 provider. It can be used as an API helper but doesn't provide any methods to support that.
How do I get the Link header for pagination? I tried
$provider->getHeaders()
that returns nothing