Twitter site-streams - api

I would like to use the twitter site-streams but I can't find a way to use them. There is no API-docs online and how to access site-streams.
Does someon have an example in php or better c#?
Are there any API-samples or a full API-doc?
Thanks
Matthias

I called oAuth before doing something similar to Shannon Whitley's user streams example. Use the curl commands generated for you at dev.twitter.com to double check your C# generate urls.
The site stream url is buried in the top middle of the doc (/2b/site.json?follow=1,2,3,4,5) # dev.twitter.com
I'd also follow #sitestreams as well to get heads up on site stream restarts.

The API looks to still be in beta, I found this. It's not a lot of detail, but the post was only a few weeks ago so it is something pretty new. It uses the same REST API that all of twitter uses so if you are familiar with that you should be able to use what it gives you.
If you need a tutorial on REST with twitter here is a decent tutorial. It is using basic authentication so I do strongly recommend that you use OAuth instead.

Related

Open Contrail API, post request on project resource

I'm working on a cloud project and I have to use Contrail it provides a RESTful API to use, but it is documentation is too small. I would like to know how to perform rest requests, especially post requests on "project" resource.
Each Contrail config node provides supported API details(searchable) at http://:8082/documentation/index.html
You could also check here which is a bit old but should serve your project API needs.
Your question is old, but as there are no other answers I thought I would contribute one. Were you interested in an answer or just wanted to share the documentation you'd written? I agree with you that Contrail documentation is very scarce, and every attempt to contribute to it should be appreciated. I had to integrate with Contrail API a while ago, and found out that in some cases I had to call OpenStack APIs to get the job done (Contrail is built on top of OpenStack). Project and user management were some of them.
I wrote a documentation about Contrail api, For each resource I mention the allowed methods and which parameters to integrate on the request body and I test it until I get it to work finally I put an example. I haven't finished the documentation, I stopped working on Open Contrail. The documentation is my personal try maybe it would be useful and maybe it contains some mistakes, Thus, I would like to share it. You can find it here.

Soundcloud explore section

I am exploring soundcloud's API, and I have seen that thought through the web you can access explore sections, I haven't found any docs that help you to do so through the API.
Anyone has tried this before?
soundcloud explore section uses new API calls that are still not documented. same with stream.
but you can check under the hood (in chrome developer tools -> network tab) to find new api calls.
for example, main explore section points to https://api.soundcloud.com/explore/sounds/category?limit=10&offset=0&linked_partitioning=1
and rock section points to
https://api.soundcloud.com/explore/sounds/category/rock?limit=10&offset=0&linked_partitioning=1
p.s. don't forget to include your client id in the calls
The API has been updated. You can use following URL to access the explore section (based on #cucko's reply):
https://api-v2.soundcloud.com/explore/categories?limit=10&offset=0&linked_partitioning=1
With client id in the call:
https://api-v2.soundcloud.com/explore/categories?limit=10&offset=0&linked_partitioning=1&client_id=YOUR_CLIENT_ID
The API has been updated.You can use following URL
https://api-v2.soundcloud.com/charts?kind=top&genre=soundcloud%3Agenres%3Aall-music&limit=20&offset=0&linked_partitioning=1&client_id=YOUR_CLIENT_ID

Twitter API - quick summary

For a project, I wan't to build a webapp, which shows (semi-) real time Tweets with specific keywords.
I'm not sure how to start. Can somebody explain to me how I need to start. I have a PHP framework for my website.
With what language do I need to retrieve data form the Twitter API. JSON? PHP?
Where can I find a nice tutorial?
I hope somebody can provide me a few lines of code, just to help me on the right track.
Thanks!
- Sammy
You could use the Streaming API with the Phirehose library (PHP).
The method "filter" of this API catch all the tweets with the specified keywords in real-time. You can take a look at 140dev for an example of application using this library.

Why should we use twitter api insted of getting it from the non-api URL?

I was wondering if i can use the PHP library of Brandom
http://viralpatel.net/blogs/demo/Twitter.class.php.txt
Instead of using the twitter API which has rate limit.
What about using this:
http:// twitter.com/users/show/'.$id.".$format";
Instead of this:
https:// api.twitter.com/1/statuses/show/'.$id.".$format";
The 2nd one uses the API. The first one...i guess it doesn't.
So... can i use the fist one for this same purpose?
THanks.
Reasons you might want to use Twitter API:
Well documented and easy to comprehend
Proper explanation for the caught exception
Most reliable and real time results
Many dimensions to extract the data
Active community that resolves the issues(bugs, confusions ..etc). Also as the developers are Twitter guys, nothing could be more reliable as they know their product better.
Last but not the least, very easy to use
As far as "Rate Limit" is concerned, it can be dealt using Streaming API.

How to interact with the Panoramio API using services?

I'm writing a location base client and would love to integrate Panoramio with my client, now the problem is that I can't find a way to interact with the Panoramio using a ~REST-like service.
I know they do have an API but it's mostly for embedding the content into a website and not as to interact thru me code (at least from documentation)
Have any of you hacked a way thru this?
I am writing the clients natively for android and iphone in case you are wondering.
cheers,
G.
well it seems like the answer came a bit fast... and although this is easily accessible thru their website it is discussed in their forum and even google has posted about it in their geo developer blog
a sample request to get images from a bounding box will go along the lines of the following example:
http://www.panoramio.com/map/get_panoramas.php?order=popularity&set=public&from=0&to=10&minx=-124.29382324218749&miny=36.089060460282006&maxx=-119.8773193359375&maxy=38.724090458956965&callback=MyCallback
Update: I have found also the official page to their data api.
hope it helps!