Widget:Sandbox: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
action: 'query', | action: 'query', | ||
meta: 'userinfo' | meta: 'userinfo' | ||
} | } , { | ||
ok: function ( data ) { | |||
console.log( 'API result:', data ); | console.log( 'API result:', data ); | ||
} | } } | ||
, fail: function ( error ) { | |||
console.log( 'API failed :(', error ); | console.log( 'API failed :(', error ); | ||
} ); | } ); |