Comments (4)
Sorry to reopen this issue, but why in the Tmdb\Client this commit 249855e is not present ? I need to get information about rate limit.
For example I use the discover repository:
$this->repository->getClient()->
but in Tmdb\Client the following methods are not present:
getRateLimitFromLastResponse
getRateLimitRemainingFromLastResponse
getRateLimitResetFromLastResponse
I can do that:
$data = $this->repository->discoverTv($query);
dd($this->repository->getClient()->getHttpClient()->getLastResponse()->getHeaders());
All headers are returned
but with that:
$data = $this->repository->discoverTv($query);
dd($this->repository->getClient()->getHttpClient()->getLastResponse()->getHeader('X-RateLimit-Remaining'));
Call to undefined method Tmdb\HttpClient\Response::getHeader()
from api.
I'll look into this tomorrow with some other maintenance duties, I hope you can understand I can't remember the exact details right now about a commit from 1.5 years ago :-)
Are you running the latest version? ( I'd assume you are but just in case ... ) If not what version are you on?
from api.
I undertand, don't worry :).
Yes I use the last version (I use the wrapper with the laravel package)
from api.
@Rtransat the branch you are referring to never got merged, as this was an implementation with a different background of dependency versions. ( Took TMDB a long time to actually implement the RFC ).
In the Response
object there is no getHeader
method currently, however calling getHeaders()->get('X-Header')
should do the job.
from api.
Related Issues (20)
- How can we use "first_air_date_year" HOT 1
- Collection Model has no Translation support HOT 1
- No images in all languages HOT 2
- Search by Name HOT 1
- Episode Group missing? HOT 1
- When a date is empty on the website, the api will instanciate a DateTime anyway HOT 1
- need help HOT 1
- This appears to cause errors when loading a show, since the getLanguages method expects an array but gets an object HOT 1
- RequestQueryHelper unexpectedly converts dots/periods in parameters to underscores HOT 2
- General API Usage - Undefined "api_token" on Client() construction HOT 2
- Missing Watch Providers Support
- [bug] Episode AirDate has wrong value when TMDB api returns empty HOT 2
- Bump version of php HOT 10
- Bump version of symfony/options-resolver
- API key fails to load
- PHP 8 Dpreciations
- Missing Watch Providers Support in Watch Providers
- Undefined array key "api_token" in /html/vendor/php-tmdb/api/lib/Tmdb/Client.php on line 175 HOT 2
- Fetch movie info from link
- Missing configuration/languages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api.