Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (21 sloc) 875 Bytes
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="">
<sampleQuery>select * from {table} where username="codepo8"</sampleQuery>
<author>Christian Heilmann</author>
<description>Gets the Flickr User ID from a user name</description>
<select itemPath="" produces="XML">
<key id='username' type='xs:string' paramType='variable' required="true" />
var x = y.query('select href from html where url="'+username+'" and xpath="//link[contains(@href,\'photos_public\')]" limit 1');
var h = y.xpath(x.results,'//@href');
var id = h.split('id=')[1].split('&')[0];
response.object = <user_id>{id}</user_id>;