Comments (6)
Hi, this is how I use it:
var easypost = require('node-easypost');
Then in my functions I use it like so:
var ep = new easypost(apiSecret);
from easypost-node.
That's exactly what I would expect, and I'll be using that way myself, I just don't enjoy the fact that I have to go so contrary to the usage instructions in the read.me
from easypost-node.
Agreed, you could submit a pull request with updated README, I'm sure they'd appreciate it.
from easypost-node.
That's a good thought.
from easypost-node.
I went ahead and did it #7
from easypost-node.
it looked to me like yours had only hit the first couple of lines where it's originally declared, I also changed the calls to the original easypost (now ep) object further down in the code. I'd already done this is my fork so started a new pull from there.
from easypost-node.
Related Issues (20)
- Update Partner White Label Tests to Account for New `has_more` and `referral_customers` keys HOT 1
- [Bug]: `lowestRate()` returns rates for `USPS` even though requested only for `USPSReturns` HOT 5
- [Bug]: Property 'CustomsInfo' does not exist on type 'EasyPost' HOT 6
- [Feat]: TypeScript definitions are incomplete HOT 1
- Installed module is too large due to types/demo/node_modules in .tgz file HOT 2
- `api_keys` property missing from User type HOT 1
- Link to docs from github page leads to 404 HOT 1
- [Bug]: Webhook.validateWebhook is not a function HOT 12
- [Bug]: no create function in Webhook class HOT 1
- [Bug]: TypeScript compilation error
- [Bug]: Type definition of `Shipment.lowestRate` function should not be static HOT 2
- [Bug]: lowercased webhook signature header not recognized by `validateWebhook` HOT 3
- [Bug]: Tracker missing delayed status_detail HOT 3
- `tracker` Nullable on `IShipment` HOT 2
- [Feat]: Get Account Balance Before Purchasing Shipment HOT 1
- [Bug]: getLowestRate() doesn't account for difference currencies HOT 2
- [Feat]: Valid JSON formatted response HOT 6
- [Feat]: Add Refund to EasyPost.d.ts HOT 1
- [Feat]: returns individual parcel rates for orders request HOT 1
- [Bug]: Timeout Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easypost-node.