0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

NodeJSからAPI Gateway SDK Javascript版を使ってみる

Last updated at Posted at 2022-02-20
Node.js
// eval(fs.readFileSync("apiGateway-js-sdk/lib/axios/dist/axios.standalone.js", 'utf-8'));
const axios = require('axios'); //npm install axios
eval(fs.readFileSync("apiGateway-js-sdk/lib/CryptoJS/rollups/hmac-sha256.js", 'utf-8'));
eval(fs.readFileSync("apiGateway-js-sdk/lib/CryptoJS/rollups/sha256.js", 'utf-8'));
eval(fs.readFileSync("apiGateway-js-sdk/lib/CryptoJS/components/hmac.js", 'utf-8'));
eval(fs.readFileSync("apiGateway-js-sdk/lib/CryptoJS/components/enc-base64.js", 'utf-8'));
eval(fs.readFileSync("apiGateway-js-sdk/lib/url-template/url-template.js", 'utf-8'));
eval(fs.readFileSync("apiGateway-js-sdk/lib/apiGatewayCore/sigV4Client.js", 'utf-8'));
eval(fs.readFileSync("apiGateway-js-sdk/lib/apiGatewayCore/apiGatewayClient.js", 'utf-8'));
eval(fs.readFileSync("apiGateway-js-sdk/lib/apiGatewayCore/simpleHttpClient.js", 'utf-8'));
eval(fs.readFileSync("apiGateway-js-sdk/lib/apiGatewayCore/utils.js", 'utf-8'));
eval(fs.readFileSync("apiGateway-js-sdk/apigClient.js", 'utf-8'));

var apigClient = apigClientFactory.newClient({
    apiKey: 'API_KEY'
});
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?