2016-05-12 9 views

Antwort

0

Ändern des Beispiel here das AWS Beispiel mit einem Teil aufreihen Sie verbunden:

function sendHttpPost() { 


    var payload = 
    { 
    "ASINList.ASIN.1" : "1933890517", 
    "AWSAccessKeyId" : "AKIAEXAMPLEFWR4TJ7ZQ", 
    "MWSAuthToken": "amzn.mws.4ea38b7b-f563-7709-4bae-87aeaEXAMPLE" 
    // and so on for all of the name value pairs that make up the query 
    }; 

    // Because payload is a JavaScript object, it will be interpreted as 
    // an HTML form. (We do not need to specify contentType; it will 
    // automatically default to either 'application/x-www-form-urlencoded' 
    // or 'multipart/form-data') 

    var options = 
    { 
    "method" : "post", 
    "payload" : payload 
    }; 

    UrlFetchApp.fetch("http://example.com/upload_form.cgi", options); 
} 
Verwandte Themen