Skip to content

Commit

Permalink
Uses env for api key
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexmatthews committed Dec 22, 2024
1 parent 1fd30ca commit bdae7e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/node_compatibility/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
const dotenv = require('dotenv');

dotenv.config();

const EasyPostClient = require('../..');

const test = async () => {
const apiKey = 'EZTK0e95f038c18f432fbc50f84855dc20c61QV0fkCenM1PlD8dAvgo0A';
const apiKey = process.env.EASYPOST_TEST_API_KEY;
const client = new EasyPostClient(apiKey);

const shipment = await client.Shipment.create({
Expand Down

0 comments on commit bdae7e7

Please sign in to comment.