Comments (4)
Can you please give us more details about what you're doing, for example - what URL's are you hitting that you think are slow? Also what counts as slow? Also, why does speed matter? If it is affecting your UX you may want to find ways to start the request earlier or do it in the background. We can't suggest fixes without more details from you though.
from twitch-api.
I am querying all the registered streams in my site(for example i have an input form where people can put their stream id).
With the stream id i am running the following functions : http://pastie.org/4593068 to get the info of the stream and the status and then i out put all the streams in this page http://pastie.org/4593083 .
The amount of slow is big and sometimes i get the error : Fatal error: Maximum execution time of 30 seconds exceeded in .
I fixed it that in my local host through php.ini.
I thought of a cache method to run all the info i want in the background because this i would do if i was making java or C++ code but i dont know how i can do it here... If you have any ideas will be great!
from twitch-api.
Hi,
So it turns out that you're using our old API. Please use our new streams API as part of the twitch API, not the overloaded Justin TV api: https://github.com/justintv/Twitch-API/wiki/Streams-Resource
from twitch-api.
Thank you very much!
I actually replaced the old api with the new one you gave me and i parse all the work to cron jobs and the page is loading almost instantly!!
from twitch-api.
Related Issues (20)
- Receiving 404 errors on https://api.twitch.tv/kraken/streams HOT 2
- Gigabytes of memory leaks in twitch embeds crash tabs
- twitch add og:video for twitch clips HOT 1
- USERNOTICE, if a user unsubscribes
- Inaccurate number of followers HOT 2
- Api
- Github still used? HOT 2
- Private messages?
- http://www.twitch.tv/ - Site not reachable
- force_verify=true ignored when scope includes 'openid'
- Response type "id_token" not supported in OICD Implicit Auth Flow HOT 2
- Invalid OAuth 2.0 token
- Twitch
- Twitch Embed body background is white
- Come Watch @Myrrhai on Vimeo.com
- soom1121 HOT 1
- [REQUEST] User subscription current_streak and total_streak
- I cant skid help
- Repository
- Streamers are for people with this ability to with hold breathing... true or false
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 twitch-api.