My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"SMDVersion": "2.0",
"id": "http://gl.wiktionary.org/w/api.php",
"description": "Galizionario API",

/* *************************************************************************
Usage:
var mu = dojo.moduleUrl("vifito.rpc.SMDLibrary", "galizionario-v2.smd");
var wikipedia = new dojox.rpc.Service(mu);

wikipedia.query({
action: "opensearch",
search: "Main Page"
}).addCallback(this, function(article){
console.log(article);
});
************************************************************************** */

transport: "JSONP",
envelope: "URL",
additionalParameters: true,
target: "http://gl.wiktionary.org/w/api.php",
parameters: [
{ name: "format", optional: false, "default": "json" }
],

services: {
opensearch: {
parameters: [
{ name: "action", type: "string", default: "opensearch", optional: false },
{ name: "search", type: "string", optional: false}
]

},

query: {
parameters: [
{ name: "action", type: "string", default: "query", optional: false },
{ name: "prop", type: "string", default: "revisions", optional: false },
{ name: "titles", type: "string", optional: false }
]
},

parse: {
parameters: [
{ name: "action", type: "string", default: "parse", optional: false },
{ name: "prop", type: "string", default: "text", optional: false },
{ name: "page", type: "string", optional: false }
]
}

}
}

Change log

r10 by vifito on Sep 21, 2009   Diff
[No log message]
Go to: 
Project members, sign in to write a code review

Older revisions

r4 by vifito on Sep 15, 2009   Diff
first version
r2 by vifito on Aug 28, 2009   Diff
First commit
All revisions of this file

File info

Size: 1700 bytes, 53 lines

File properties

svn:executable
*
Powered by Google Project Hosting