This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Purpose: | |
This script creates an oauth access token for you, and then | |
allows you to use that token to publish an update (that | |
includes a thumbnail picture) w/ the Yahoo! Updates API | |
Prerequisites | |
* A server with PHP 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // YAP sample code: YML tabset | |
//note: http://gist.github.com/327012 provides alternate example | |
/* | |
Normally, this wouldn't all be in the same file, but for the sake of simplicity we do so here. | |
Once the app is loaded, clicking on the tabs calls back to the server-side code and regenerates | |
the app, including a secondary call for content. | |
Usage: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$search_term = $_GET['search_term']; | |
if($search_term){ | |
//http://developer.yahoo.com/yql/console/?q=select%20*%20from%20search.web%20where%20query%3D%22pizza%22 | |
$yql_search_url = "http://query.yahooapis.com/v1/public/yql?" | |
."q=select%20*%20from%20search.web%20where%20query%3D%22$search_term%22&" | |
."format=json&diagnostics=false&callback="; |
NewerOlder