Skip to content

Instantly share code, notes, and snippets.

@ydn
ydn / gist:284358
Created January 23, 2010 01:18
publish an update w/ image to Yahoo! using the PHP SDK
<?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
@ydn
ydn / gist:281448
Created January 19, 2010 23:56
sample code for creating a tabset in YAP
<?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:
@ydn
ydn / gist:242381
Created November 25, 2009 00:52
YML, YQL, PHP, CSS, and HTML for YAP app search box referenced in YDN blog post: http://developer.yahoo.net/blog/archives/2009/11/yahoo_app_searchbox.html
<?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=";