好吧,我明白了。在 Zoho Creator 中
headerMap = map();
headerMap.put("X-EBAY-API-COMPATIBILITY-LEVEL", "855");
headerMap.put("X-EBAY-API-DEV-NAME", "...");
headerMap.put("X-EBAY-API-APP-NAME", "...");
headerMap.put("X-EBAY-API-CERT-NAME", "...");
headerMap.put("X-EBAY-API-SITEID", "3");
headerMap.put("X-EBAY-API-CALL-NAME", "GetItem");
token = “...”;
reqMap = map();
reqMap.put("token", token);
reqMap.put("xmlns", "urn:ebay:apis:eBLBaseComponents");
reqMap.put("body", "<ItemID>...itemid...</ItemID>");
url = ".....apigeeurl......";
resp = postUrl(url, reqMap, headerMap);
1) ExtractVariables 政策
<ExtractVariables async="false" continueOnError="false" enabled="true" name="extractform">
<DisplayName>ExtractVar</DisplayName>
<FaultRules/>
<Properties/>
<Header name="X-EBAY-API-CALL-NAME">
<Pattern ignoreCase="false">{CallName}</Pattern>
</Header>
<FormParam name="token">
<Pattern>{token}</Pattern>
</FormParam>
<FormParam name="xmlns">
<Pattern>{xmlns}</Pattern>
</FormParam>
<FormParam name="body">
<Pattern>{body}</Pattern>
</FormParam>
<IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
<Source clearPayload="false">request</Source>
</ExtractVariables>
2)AssignMessage策略创建新的POST
<AssignMessage async="false" continueOnError="false" enabled="true" name="getebayofficialtime">
<DisplayName>FormXml</DisplayName>
<FaultRules/>
<Properties/>
<Set>
<Headers>
<Header name="Content-type">text/xml</Header>
</Headers>
<Payload>
<?xml version="1.0" encoding="utf-8"?>
<{CallName}Request xmlns="{xmlns}">
<RequesterCredentials>
<eBayAuthToken>{token}</eBayAuthToken>
</RequesterCredentials>
{body}
</{CallName}Request>
</Payload>
</Set>
<IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
<AssignTo createNew="false" transport="http" type="request"/>
</AssignMessage>