Skip to content
Newer
Older
100644 59 lines (49 sloc) 1.9 KB
a383d0b Added auctions OAuth authorization APIs tables.
Ryuichi Okumura authored
1 <?xml version="1.0" encoding="UTF-8"?>
2 <table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
3 <meta>
4 <author>Ryuichi Okumura</author>
5 <documentationURL>http://developer.yahoo.co.jp/webapi/auctions/auction/v1/deletemyofferlist.html</documentationURL>
6 </meta>
7 <bindings>
8 <select itemPath="ResultSet.Result" produces="XML">
9 <urls>
10 <url>http://auctions.yahooapis.jp/AuctionWebService/V1/deleteMyOfferList</url>
11 </urls>
12 <inputs>
13 <key id="auction_id" type="xs:string" paramType="query" required="false" />
14 <key id="oauth_consumer_key" type="xs:string" paramType="variable" required="true" />
15 <key id="consumer_secret" type="xs:string" paramType="variable" required="true" />
16 <key id="oauth_token" type="xs:string" paramType="variable" required="true" />
17 <key id="token_secret" type="xs:string" paramType="variable" required="true" />
18 </inputs>
19 <execute><![CDATA[
20
21 var document = {
22 getElementsByTagName: function(value) {
23 return null;
24 }
25 };
26
27 y.include("http://oauth.googlecode.com/svn/code/javascript/sha1.js");
28 y.include("http://oauth.googlecode.com/svn/code/javascript/oauth.js");
29
30 var accessor = {
31 consumerSecret: consumer_secret,
32 tokenSecret: token_secret
33 };
34
35 y.log(request.url);
36
37 var message = {
38 method: "GET",
39 action: request.url,
40 parameters: []
41 };
42
43 message.parameters.push(
44 ["oauth_consumer_key", oauth_consumer_key],
45 ["oauth_token", oauth_token],
46 ["oauth_signature_method", "HMAC-SHA1"],
47 ["oauth_version", "1.0"]
48 );
49
50 OAuth.setTimestampAndNonce(message);
51 OAuth.SignatureMethod.sign(message, accessor);
52
53 response.object = request.header("Authorization", OAuth.getAuthorizationHeader("yahooapis.jp", message.parameters)).get().response;
54
55 ]]></execute>
56 </select>
57 </bindings>
58 </table>
Something went wrong with that request. Please try again.