Using ads-js with vtex.local

TypeScript integration

✓ Official SDK
Install
npm install ads-js
Quick start
import Ads_js from 'ads-js';

const client = new Ads_js({ apiKey: "YOUR_API_KEY" });
List All GiftCard Providers
curl \
  -H "X-VTEX-API-AppKey: $API_KEY" \
  https://vtex.local/giftcardproviders
Get GiftCard Provider by ID
curl \
  -H "X-VTEX-API-AppKey: $API_KEY" \
  https://vtex.local/giftcardproviders/{giftCardProviderId}
Get GiftCard from GiftCard Provider by ID
curl \
  -H "X-VTEX-API-AppKey: $API_KEY" \
  https://vtex.local/giftcardproviders/{giftCardProviderID}/giftcards/{giftCardID}
SDK on GitHub 📄 API Docs
SDK
ads-js
TypeScript
API
vtex.local
vtex.local:GiftCard-Hub-API
At a glance
Language TypeScript
Endpoints15
Base URLhttps://vtex.local
✓ Official