I have done a load of searching but haven't found anything. There seem to be a lot of jobs asking for this functionality yet no one really talking about whether / how it can be done.
Does anyone know if this is possible and if so where I could extract the data from?
Check the official libspotify documentation and more specifically the playlist subsystem.
Note that this is a C API, not PHP.
Related
I am new to android and php and working on old project.
Everything worked smoothly till yesterday. I am getting all videos from you tube api:
https://gdata.youtube.com/feeds/api/videos?q=&start-index=1&max-results=10&v=2&alt=json
But from today, i just get only one video from this link and that is:
https://support.google.com/youtube/answer/6098135?p=yt_devicesupport&hl=en&rd=1
I have read that v2 become depreciated so i need to move to v3 version ?
I need help on how to get all videos as before.
There isn't really an easy answer for this. At least, we can't really just give you a new address to plop in the place of the old one. API v3 is structured differently and has different requirements than v2. Some of those changes at least theoretically bring some performance advantages, but when requesting things from this new API, you need to be more specific about what you're looking for. Also, since some of the data has moved around within the JSON results, you may need to change where your code looks for given information.
As it is, I don't really know what information you need, or for that matter, what collection of videos you're looking for. In this version of the API, these details actually matter. In v3, you have to provide a comma-separated list of the information you're looking for, and then at least one more "filter" parameter as well (filters, for your cases are probably either "chart" which is something like the "chart of the most popular", or "id" which is a comma-separated list of video IDs.)
While it's probably not the answer you were looking for, you probably need to stroll through the documentation. I especially suggest the Try It section, where you can plug in your parameters and build the query.
You'll need an API key to use the new API, and you can get that key from the Google Developers console. Create a new project, and add the YouTube API to it.
Can somebody help me in understanding how to retrieve the home timeline of the user. Examples of how this could be used would be perfect, but if that is too much to ask for, then links to tutorials which start at the beginner would also be great which can go through step by step.
Also what other external files would I need to be able to accomplish this?
check this...There are several links also. this might be useful. http://viralsolani.wordpress.com/2012/05/26/writing-your-first-twitter-application-with-oauth/
I am trying to build a web application that would display Twitter feed based on multiple hashtags in real time. Something like TweeterWall. I've been Googling around, but there are so many APIs that I am a bit confused.
My setup is a standard shared hosting with PHP and MySQL.
My question: Which method is best suited for my environment?
Should I use Streaming API, Search API, Sockets, maybe Javascript with setInterval()..
i realy ont know..
Thanks for your answers.
- Cheers
Take a look at this project on GitHub. Don't be confused by the title - it has been updated since Twitter's API update to 1.1.
The jQuery plugin on the page has been re-purposed to be a Rendering engine, i.e. it helps with rendering your feeds.
The important part, however is in the "Server-Side Examples and Setup" directory. Go there, read the SETUP_INSTRUCTIONS document, and use the code in the "Plug_and_Play/Ready_PHP.php" file as your starting point.
If you followed the instructions in the SETUP_INSTRUCTIONS document, you should only have to copy and paste the keys from Twitter into the file, along with a Twitter handle, and it should render the timeline for you.
Note that you will have to update the code to render multiple timelines, and will have to either use AJAX or some other solution for updating the timelines, to simulate real-time.
On that note, be careful not to blow the rate-cap. If you are rendering timelines for just two Twitter handles, you can update them only once every 6 seconds (best case scenario). To do this, you will have to use a separate web service to perform the requests and then query that service from your webpage.
P.S. I am the author of that project, so if you need any help, let me know. Good luck! :)
Wher can I find a good documentation on these two PHP files and a more detail & indepth use of each function?
Facebook documentation is... not informatitve enough. lol
I feel your pain.
facebookapi_php5 is mainly each API method.
facebook is mainly for session/auth.
The best place I've found so far is the developer forums, but it is mainly questions without answers.
Since Facebook is always changing their API, the documentation is inevitably lacking and/or out of date. If you are looking up viral information, you going to find a lot of pages that say they have been deprecated.
My most used pages are:
http://wiki.developers.facebook.com/index.php/API
http://wiki.developers.facebook.com/index.php/FBML
http://wiki.developers.facebook.com/index.php/FBJS
You can play around with the API here:
http://developers.facebook.com/tools.php?api
But in the end, just about everything in those files gets passed through the post_request function in the facebook_php5_restlib file. That's where the curl function is for "posting" to Facebook. You can always capture what's going on in that function.
I need to watch a certain feed for my web app and i can't find any proper documentation about this topic
-Edited:
what i'm actually after is probably so simple that it might be embarrassing :)
i know the hub will use a POST request to deliver the updates but i don't know how to fetch that data using $_POST because i don't know the key value in the $_POST array
I'd love to see basic PHP code example on how this is done
thanks
I don't know how good it is, but there is an implementation being developped in Zend Framework ; it's currently still in incubator, but maybe it might interest you : /standard/incubator/library/Zend/Feed/Pubsubhubbub
OK
problem solved, i found the protocol wrappers section at php.net.
"php://input" is what i was looking for
http://www.php.net/manual/en/wrappers.php