Skip to content

Instantly share code, notes, and snippets.

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

Embed
What would you like to do?
require('AWSRequest')
var creds = {
key: 'AKIAI6DMD4QIN463KJQA',
secret: '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'
};
var target = 'GameLift.ListAliases';
var requestBody = '{}';
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.