This file contains 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
oauth -v 0.4.3 | |
json |
This file contains 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://yui.yahooapis.com/3.2.0pr2/build/simpleyui/simpleyui-min.js"></script> | |
<script type="text/javascript" src="http://isithackday.com/hacks/geo/yql-geo-library/yqlgeo.js"></script> | |
<style type="text/css"> | |
#demo input { | |
width: 2em; |
This file contains 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
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd"> | |
<meta> | |
<author>Paul Tarjan</author> | |
<description>Facebook Graph API</description> | |
<documentationURL>http://graph.facebook.com</documentationURL> | |
<documentationURL>http://developers.facebook.com/docs/reference/api/page</documentationURL> | |
<sampleQuery>SELECT * FROM facebook.graph WHERE id='paul.tarjan'</sampleQuery> | |
<sampleQuery>SELECT * FROM facebook.graph WHERE id='facebook' AND connection='posts'</sampleQuery> | |
<sampleQuery>SELECT * FROM facebook.graph WHERE ids='4,6'</sampleQuery> | |
<sampleQuery>SELECT * FROM facebook.graph WHERE search='conference' AND type='event'</sampleQuery> |
This file contains 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<!-- <s cript type="text/javascript" src="http://yui.yahooapis.com/3.2.0pr2/build/simpleyui/simpleyui-min.js"></script> --> | |
<script type="text/javascript" src="http://isithackday.com/hacks/geo/yql-geo-library/yqlgeo.js"></script> | |
</head> | |
<body> | |
This file contains 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title>Basic Sliders</title> | |
<style type="text/css"> | |
/*margin and padding on body element | |
can introduce errors in determining |
This file contains 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
<script src="http://yui.yahooapis.com/3.2.0/build/simpleyui/simpleyui-min.js"></script> | |
<script> | |
Y.one("#foo").addClass("highlight"); | |
</script> |
This file contains 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 | |
// http://github.com/yahoo/yos-social-php5 | |
require('../yosdk/yahoo-yos-social-php5-86eef28/lib/OAuth/OAuth.php'); | |
require('../yosdk/yahoo-yos-social-php5-86eef28/lib/Yahoo/YahooOAuthApplication.class.php'); | |
if( $_REQUEST['submit'] ){ | |
$app = new YahooOauthApplication( $_REQUEST['key'], $_REQUEST['secret'], null, $_REQUEST['callback'] ); | |
$token = $app->getRequestToken( $_REQUEST['callback'] ); |
This file contains 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 // a php script that uses the standard oauth lib (via yos sdk) to do the oauth dance | |
/** | |
* Requirements: | |
* - PHP5 | |
* - YOS PHP5 SDK: http://github.com/yahoo/yos-social-php5 | |
*/ | |
require('../yosdk/yahoo-yos-social-php5-86eef28/lib/OAuth/OAuth.php'); | |
require('../yosdk/yahoo-yos-social-php5-86eef28/lib/Yahoo/YahooOAuthApplication.class.php'); |
This file contains 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
/** | |
* A convenience fn for adding meta data to the log in YQL | |
* | |
* Usage: | |
* 1) copy/paste this code into your YQL table's execute block | |
* 2) Edit the tableName var to match your table's name | |
* 3) To log the message 'aloha' on line 25, call the logger like this: logger( 'aloha', 25 ); | |
* 4) Look in the diagnostics section of your YQL output to see the log entry | |
* | |
* License: Yahoo! BSD http://gist.github.com/375593 |
This file contains 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 // simple code to require OpenID authentication on a page | |
/* | |
Requirements: | |
* PHP 5 | |
* OpenID Enabled PHP library (http://openidenabled.com/php-openid/) | |
Usage: | |
1) Put this code in a file on your server | |
2) Load the page in a browser |