MashZone NextGen Development and APIs : MashZone NextGen Platform API Console : Input Parameters for JUMP Requests
Input Parameters for JUMP Requests
 
Parameter Values
JUMP requests contain a params property that takes either an array of parameters or an object with named parameters to pass to mashables, mashups or to platform service APIs. There are several ways to construct this array to accommodate different requirements:
*No parameters = an empty array, such as:
params: [ ]
*Unnamed, ordered parameters with simple types = array entries are separate by commas. They can be any legal JSON value or a mapping expression identifying aMashZone NextGenattribute, such as:
params: [ "short", 10 ]
or
params: [ "$global/AmazonId", true ]
See Parameter Values for details.
*Named parameters with simple types in any order = an object with matching properties for each named parameter, such as:
params: { "itemsPerPage": 10,
"username": "$user/rssUserID" }
The values for individual parameters (each property value) can be any legal JSON value or a mapping expression identifying a MashZone NextGen attribute. See Parameter Values for details.
Parameter names can also use namespaces, where required, as shown in the (following) example for a complex parameter.
*A single, unnamed, complex parameter with named properties = an object with any level of complexity and named properties.
This is a special case of an unnamed parameter that is represented by a complex object with named properties. This example contains a complex object where properties may also have objects as values. Property names also include a namespace prefix:
params: { "ns:ItemLookup":
{ "ns:SubscriptionId":"0525E2PQ81DD7ZTWTK82",
"ns:Validate":"False",
"ns:Request":
{ "ns:ItemId":"B000EXS1BS",
"ns:IdType":"ASIN",
"ns:ResponseGroup":"Large"
}
}
}
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback