I'm wondering how Boxcar works, anybody knows? I know how to do the push notification from server to iPhone, but I have no clue of how to create the server to get the #reply and dm from twitter in real time. Any suggestion on what I should look into to create the server? Should I use Twitter's streaming API or User Streams API?
Any sample code, in PHP preferably, will be great :) Thanks!
Currently the only way to get mentions and DMs in realtime for more then a single user is the Site Stream API. You can use the Phirehose library with the OAuth/userstream patch to connect. Unfortunately Site Streams is currently in closed beta and you may not be able to get access for a little while.
Otherwise you pretty much have to poll the REST API frequently to simulate realtime.
Related
I have reached a good stage in programming (php), but there are some things that hinder me in progress, which is that I cannot create some types of sites and use some APIs, and sites that hinder me in progress
And the first problem that hinders me is: -
I would like to create a live video streaming site and have read and found that I have to use webRTC, but I only found a two-person connection or a server used to connect to more than two people, but that is the point. I did not find a source for learning or an application example that shows me what I want, is there any application available in php and webRTC so that I can learn and please if there is an open source application and not documented, because I am not strong in the English language, I am in the stage of learning
When I understand and I can program the first obstacle, which is a live broadcast video, I will request your help again in some problems, which are sms api, visa api, paypal api and imap in php
Thank you in advance
As you may have already realised WebRTC knows how to communicate with other peers, but it doesn’t know how to discover these other peers. For discovery you can try Ably - use it as a realtime signalling platform in collaboration with WebRTC.
I'd really recommend having a look through Ably's WebRTC tutorial series. More specifically there's a tutorial focussed on video calling using WebRTC and Ably. I hope that helps, or is at least a good place to start.
I want to implement some of the twitter's client application's features in a web application, for example updating the timeline and searching for users etc. Now from what i found out by searching is, to do this in real time without refreshing a page or time delay, i would need to implement twitter's streaming API(user stream). I understand the twitter's REST API but unfortunately, i cant get the concept of streaming around my head. The documentation didn't help much either. For example about keeping a connection open and populate the page with real time tweets. I am planning to do this with PHP. Can anyone provide me an insight on how to go around doing it and what library to use?
Maybe you could try phirehose. Supports Streaming API and REST API as well. Check its Introduction page in the Wiki to understand how phirehose handles the Streaming API.
https://github.com/fennb/phirehose
I want to start developing a tool that runs daily via cron for getting daily analytical data from one channel, or video, etc.. through the "Youtube Analytics API". And not what is the best way to approach it.
I have read the documentation of Google and and I have several questions:
I created the project in the console (https://code.google.com/apis/console/) but I doubt what kind of application I have to choose when I create a Client ID (Web Application, Service Account or Installed aplplication).
What PHP library use?
It's a very new API and not much information.
In the Google GData site there is a warning about that "Most newer Google APIs Google Data APIs are not Google Data APIs." and in the google-api-php-client, no examples of this API.
What is the best method for authentication in a cron?
As you can see I am very confuse, can someone help me, please?
Thank you.
1) It will be an installed application unless you will run it in a web server.
2) Use the official library, add the ytanalytics php library. Samples: https://github.com/youtube/yt-samples-php
3) You can do so by getting a refresh token from OAuth2 Playground and setting it in your youtube object.
Here it explains a little more.
And a step by step video.
The title may not be the best way to describe my question.
I am working on another social network type site similar to a facebook site in PHP. I would like to eventually pay someone to build me an iPhone/iOS app that will be similar to the facebook iPhone app but work with my PHP site instead.
So a major concern for me will be to have the iOS app to be as fast as possible for the users.
From others experience, what would be the best way for my PHP sites API to get the data for the iOS app? I would think that a simple REST type API that returns results with JSON and XML formats would be the way most sites work with an iPhone/iOS app?
Is my theory correct or is there a different way to do it? Please help
Yes, that's the best solution. The only alternative I know of would be to connect with via TCP/IP, and skip the higher level HTTP protocol. That means using sockets.
I want to develop a bot which will update the status of a facebook account using php.
Please guide me on this
#Porkchop is correct, you will probably need the Facebook Connect API. To update a users status on Facebook, you should look at the Status.set API call.
For coding a googletalk bot in php there are some articles that should get you started:
Twitter PHP Jabber Bot Tutorial
Jabber Simple - A PHP library
But also consider using IMified, which does a lot of the work of creating and running chat bots for you.
If all you are interested in is a simple way to update your Facebook status from you Google Talk status, you probably don't need to go to all that work - just install the 'Google Talk Status Synchronizer' facebook application.
You could hire somebody to do it for cheap by outsourcing it, i mean thats what i do when i dont know code.
Since you are coding in PHP, I recommend using Jaxl (Jabber XMPP Library).
It supports bot authentication using X-FACEBOOK-PLATFORM and updating facebook status should be a one line task using the library. http://github.com/abhinavsingh/JAXL