Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Refactoring smushit table, removing unnecessary complexity as the tab…

…le was using executable JavaScript when the same goal can be achieved by simply using yql's inputs/key features
  • Loading branch information...
1 parent be5b99d commit 59a9b9748172ff9fe7d89a209340797aa2377a54 John Tregoning committed
Showing with 7 additions and 9 deletions.
  1. +7 −9 smushit/smushit.xml
16 smushit/smushit.xml
@@ -1,20 +1,18 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<table xmlns="">
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="" securityLevel="any" https="false">
<author>Chirag Shah</author>
- <sampleQuery>select * from smushit where url=''</sampleQuery>
+ <sampleQuery>select * from smushit where url=""</sampleQuery>
- <select itemPath="" produces="XML">
+ <select produces="JSON">
<url env="all"></url>
- <inputs><key id='url' type='xs:string' paramType='variable' required="true"/></inputs>
- <execute><![CDATA[
- var base = [request.url, '?img=', url].join('');
- response.object =;
- ]]></execute>
+ <inputs>
+ <key id="img" as="url" type="xs:string" paramType="query" required="true" batchable="false" />
+ </inputs>

0 comments on commit 59a9b97

Please sign in to comment.
Something went wrong with that request. Please try again.