Skip to content

Instantly share code, notes, and snippets.

@chiefGui chiefGui/request.js Secret
Created Mar 29, 2018

Embed
What would you like to do?
require('AWSRequest')
var creds = {
key: '-',
secret: '-'
};
var target = 'GameLift.ListAliases';
var requestBody = { __type: 'ListAliasesInput' };
var Request = new AWSRequest(
'gamelift.sa-east-1.amazonaws.com',
'/',
'',
[
{
name : 'x-amz-target',
value : target
},
{
name: 'content-type',
value: 'application/x-amz-json-1.1'
}
],
requestBody,
"sa-east-1",
"gamelift",
creds
);
Request.makeRequest(function(respnose, error) {
Spark.setScriptData("result", error);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.