The Gallery is deprecated. No new Gallery components may be submitted, and modifying existing components is disabled. For more information please read the Gallery Deprecation blog post. This is a static snapshot of the Gallery for archive purposes.
See 42 more by this user. Created: 01/12/12
Last CDN Push: 06/20/12
Build Tag: gallery-2012.06.20-20-07
Project: YUI 3
License: YUI BSD
YUI Version: 3.5.1
Free for use.
This module adds OAuth support to YQL REST Client.
The params object passed to Y.YQLRESTClient.request may now include a member called oAuth. oAuth is an object with the following members:
consumer - an object with two members: key and secret
signatureMethod - must be either 'HMAC-SHA1' or 'PLAINTEXT'
token - an optional object with three optional members: key, verifier, and secret.
When the oAuth member is defined, paths and matrix members must not be defined. The url scheme and host must be lower case. if you are using the default port, there must not be a port specified in the url. Querystring parameters must be defined in the query member and not part of the url string.
<script src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js"></script>
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.06.20-20-07'
}).use('gallery-yql-rest-client-oauth', 'node', function(Y) {
Y.YQLRESTClient.request({
method: 'get',
oAuth: {
consumer: {
key: 'key',
secret: 'secret'
},
signatureMethod: 'HMAC-SHA1',
},
url: 'http://term.ie/oauth/example/request_token.php'
}, function (result) {
Y.one('body').setContent(result.response);
});
});
All code on this site is licensed under the BSD License unless stated otherwise.