Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'part' optional params #65

Open
VetSoftKeith opened this issue Jan 23, 2018 · 3 comments
Open

'part' optional params #65

VetSoftKeith opened this issue Jan 23, 2018 · 3 comments

Comments

@VetSoftKeith
Copy link

This library has everything I am looking for, however, would it be possible to support passing parts as an optional parameter?

I ask because I only would need the snippet part (2 quota) but your default call for Youtube#getVideoInfo() calls 6 different parts (8 quota per call). Quota is precious with YT, so I'd like to be able to use as little as possible when it is feasible.

Thanks!

@litefast
Copy link

You Can use,

$yt->searchAdvanced($parts);

the (array) $parts holds your part.

@chadul
Copy link

chadul commented Apr 2, 2018

With this today quota limits, how many request / traffic we can handle?

@rayhanz
Copy link

rayhanz commented Apr 2, 2018

@chadul That depends on how many parts you are sending.Also use varnish to avoid API limit bypass. A search term's content on youtube API takes time.So you can Cache your contents...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants