I just found this pipe.
http://pipes.yahoo.com/jonbishop/8vA1gjvl3RGqWknCBB50VA
I was just wondering if it was possible to integrate this into my web app? How would I go about doing it.
Basically, I have a form on my website - I would like this form to interact with this pipe to get the relevant data.
Could someone post a summary of what I would need to do to achieve this? I can then probably work it out from there. Using PHP.
Thanks
Quoting http://pipes.yahoo.com/pipes/docs?doc=overview
Sharing a Pipe
Once you've built a Pipe, you'll be
able save it on our server and then
call it like you would any other feed.
Pipes offers output in RSS 2.0, RSS
1.0 (RDF), JSON and Atom formats for maximum flexibility. You can also
choose to publish your Pipe and share
it with the world, allowing other
users to clone it, add their own
improvements, or use it as a
subcomponent in their own creations.
So you'd access it with any Feed Reader or XML lib you like. I am not aware of a public API for building Yahoo Pipes programmatically.
Related
I am trying to create a website that display Google map mark up with my proprietary data (in form of multiple polygons) on top of it.
I have been studying Google Map API and found the only way to do it is to publish my proprietary data in GeoJSON file then use the following api function to load the data to Google map: map.data.loadGeoJson(xxxxxx);
This means I need to publish my proprietary data by web service in GeoJSON format. However, I don't want users to download my proprietary data and use it for another purpose other than my site. This is similar to a website which allows video streaming but not allowing download the whole video offline.
How can I achieve the purpose? Can I use some language like PHP to generate the map (with markup) at server then send to web client in form of HTML? Or if I cannot achieve this by Google Map API, can other map API support it (like Bing?)
Thanks very much for your help!!!!
Code Mon key
One option is to turn your data into a tile layer. This will limit the user to only seeing an image of the data but would not give them access to the raw data. In a worse case scenario they would only be able to take the images and view the data and not do any kind of analytics against it unless they manually trace all the data.
As an added benefit of rendering the data as a tile layer, you will be able to visualize a lot more data. I've built a few systems that can render 500M rows of polygon data on a map using this approach. The cool thing, if you store the data in a spatial database like SQL Azure, you can easily make your data interactive by taking the point a user clicks on a map and searching the database for any shapes that intersect with that point.
I wrote a simple blog post on how to create a web service that does this many years ago here: https://rbrundritt.wordpress.com/2009/11/26/dynamic-tile-layers-in-the-bing-maps-silverlight-control/
There is also a good open source project here that uses ASP.NET: http://ajaxmapdataconnector.codeplex.com/
I have a whitepaper that is a lot more up to date than my blog post that will be published soon. If you email me at ricky_brundritt at Hotmail.com, I'll send you a draft copy.
I can't seem to find any other info on this topic anywhere on the interwebz.
SharePoint 365 seems so powerful, looks like an awesome solution for a whole bunch of business IT requirements.
But everything is in ASP and XML, but all my data is inside an external MySQL server, accessible through PHP pages which process and spit out JSON objects. This has worked nice and tidy for all my other apps so far.
How can I get my SharePoint site (which is basically HTML CSS and JavaScript, right?) to hit my PHP server (with HTTP GET or POST) to access my JSON data (and then process and display it however I like)?
I know AJAX can't hit external servers, so on my SharePoint site I'd need something equivalent to cURL perhaps... but with the functionality of AJAX?
Another possibility I'd avoid would be to create some kind of middle-man page/file/app in SharePoint which can process the data locally via AJAX, and send/receive data to/from the external PHP server. But this would all be in C# or ASP, ughhh surely there's an easier way?
EDIT :
Came across this post regarding XML content, the best answer was to "create a custom .NET assembly" to parse the XML... I can't believe SharePoint with all its awesomeness wouldn't be able to handle external JSON content??
You are right that SharePoint at it's heart is just ASP.net engine rendering HTML, JS and CSS down to the browser. For SP to access your data, you would need to expose the MySQL data via a REST service. This could be written in any language since it is a service. It does not need to be C#, .net or ASP as all SP is doing is calling your endpoint and receiving the json data. So no reason you could not use PHP for this.
Once you have the service, you can create a javascript file to call it using jQuery and the $.ajax() or getJSON() method to get the data. You render the data onto the SharePoint page by adding the Script Webpart in the proper location. Once added, click the Edit Snippet link on the script webpart and insert html with a reference to script file and a div to write the results. There are many examples of how to do this type of request and parse the data on the web as it is not something specific to SharePoint. Place the javascript file in the SharePoint site. I typically put it in a custom folder in the _catalogs/masterpage library.
If you just need to display this external data on one page along side your SP data, like in a dashboard, this solution will work. If the external data needs to interact with the SP data or you need to place it in multiple locations, then you may want to look into building a SharePoint App and you can use PHP to do this. Here is a link to a sample project on GitHub. https://github.com/OfficeDev/PHP-App-for-SharePoint
I need to show the latest tweet of a specified user using the twitter stream API. I have moderate PHP, JSON and Javascript knowledge but not enough to figure out this twitter stream API on my own. Can someone explain to me what it would look like to "connect" to this twitter stream and display the latest tweet? Does something need to be done on the actual server, or can this all be done just through some json and php code in the website template?
You don't want to use the streaming API for this.
You'd want to fetch statuses/user_timeline and parse it. You could load it and parse it entirely via JavaScript, in fact, avoiding any need to do PHP work here.
If your set on using the Streaming API for whatever reason. What you could do is use something like PHP phirehose or to make it even easier as in dead simple easy. Look into and read the information posted about the 140 DEV Server by Adam Green.
His website is here: http://140dev.com/
and you can download the PHP framework/server from here: http://140dev.com/free-twitter-api-source-code-library/twitter-database-server/download/
I am Creating a web application that will get homework from schools website.
I have been creating rss feeds for the website using dapper Creating an rss feed converting that into html and then putting that into an Iframe on my website.
I think there has to be a better way to do this.
I don't care what language this would be done in but i would prefer to do it client-side with php or javascript.
I'm intermidiete level php and not so good at java script.
If you could provide detailed explanation with some code that would be great.
also I have legal permission from my school which will be the first for this to go live to get the homework.
I'm assuming you are about create an php application to retrieve the rss from external site (which already have a specific url). Well, i think its better to build a public API first at the source app/external site, to get more multimedia support.
But if you're have no problem with parsing an xml format into html directly, then you can use cURL instead iFrame(or if you didnt have cURL installed in your php, you can modify lil bit and use my Proxy Library,a PHP class which enables you to make call to internal and external site with general HTTP request by opening a socket connection to the remote host, originally writen as Codeigniter Library.)
That way, it will be easier to presenting a html view/page rather than proccess it via iFrame.
i am currently developing a website where i need to generate RSS feeds and provide to the users to get frequent updates.
Please guide me on how to do this...
Thanks a lot.
Regards,
Gourav
Creating a custom rss feed with php.
You definetly need to do some google searches before you start to post questions like this ( there may be millions of ways to aproach this ) .
An RSS feed is basically just an XML document which you serve on the internet, just like a regular web page. A typical approach is to read your data from a database, convert it into a raw XML format, and then apply an XSLT to convert it to RSS. You don't have to use a database though, hand-edited XML files would, theoretically speaking, work as well.
The wikipedia article on RSS ( http://en.wikipedia.org/wiki/RSS ) should get you started on the file format and how to embed it into your web pages.
Use Yahoo's BOSS API, i used it for my iPhone app of similar nature to what you want to do. Its free and they dont limit your IP requests :)