Skip to content

Instantly share code, notes, and snippets.

@Rajmohan
Created April 5, 2011 00:35
Show Gist options
  • Select an option

  • Save Rajmohan/902785 to your computer and use it in GitHub Desktop.

Select an option

Save Rajmohan/902785 to your computer and use it in GitHub Desktop.
<mashup xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://www.openmashup.org/schemas/v1.0/EMML/../schemas/EMMLPrestoSpec.xsd'
xmlns='http://www.openmashup.org/schemas/v1.0/EMML'
xmlns:macro='http://www.openmashup.org/schemas/v1.0/EMMLMacro'
xmlns:presto='http://www.jackbe.com/v1.0/EMMLPrestoExtensions'
name='newMashup'>
<output name='result' type='document' />
<input name='keywords' type='string' default=''>
</input>
<variable name="invoke_3_out" type="document" default="" />
<variable name="payload" type="document" />
<constructor outputvariable='payload'>
<FindItemsRequest xmlns="urn:ebay:apis:eBLBaseComponents"><QueryKeywords>ipad cover leather</QueryKeywords></FindItemsRequest>
</constructor>
<variable name="hdr" type="document" />
<constructor outputvariable='hdr'>
<headers>
<X-EBAY-API-APP-ID>JackBe266-9330-4372-8fa9-803fd14e2c9</X-EBAY-API-APP-ID>
<X-EBAY-API-VERSION>713</X-EBAY-API-VERSION>
<X-EBAY-API-SITE-ID>0</X-EBAY-API-SITE-ID>
<X-EBAY-API-CALL-NAME>FindItems</X-EBAY-API-CALL-NAME>
<X-EBAY-API-REQUEST-ENCODING>XML</X-EBAY-API-REQUEST-ENCODING>
<contentType>application/xml</contentType>
</headers>
</constructor>
<display variable='payload' />
<directinvoke endpoint="http://open.api.sandbox.ebay.com/shopping?"
method="POST" requestbody="$payload" header="$hdr" outputvariable="result" timeout="5" onerror="abort" />
</mashup>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment