Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: cf81627d04
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (21 sloc) 0.875 kB
<?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>;
Jump to Line
Something went wrong with that request. Please try again.