Comments (3)
We don’t document that parameter because we didn’t anticipate people outside our team needing to use it (and therefore don’t want to distract them). The reason it’s there in the first place is because we run automated tests against a non-production environment, which lives on a different domain.
I’m going to close this now because I think you’ve got what you need. But anything else we can help with, let us know. You can also reach us via https://www.notifications.service.gov.uk/support if you have a question that doesn’t directly relate to one repository or another.
from notifications-node-client.
Hey @timarney 👋
All of our clients allow a different endpoint to be passed in when you instantiate them. For example the Node.js client lets you do this:
var notifyClient = new NotifyClient('https://example.canada.ca', apiKey);
If an environment variable would work better for you then we’d be totally happy to accept a pull request though.
from notifications-node-client.
Thanks for the quick response @quis .
Perfect I see that in the code now and and it will handle our needs 💯 .
Q: Is that listed in the docs site somewhere? I found setup instructions [here].(https://docs.notifications.service.gov.uk/node.html#install-the-client) That section doesn't mention setting the base url.
from notifications-node-client.
Related Issues (14)
- API URL HOT 2
- remove crypto dependency
- Prototype Pollution Vulnerability HOT 1
- Is there an example setup somewhere HOT 4
- `sendSms`, `sendEmail` and `sendLetter` parameters documentation doesn't match actual implementation HOT 1
- request dependency does not install HOT 9
- setProxy takes a string not an object HOT 3
- Leaked global in api_client.js HOT 1
- Exposure of sensitive information in follow-redirects HOT 1
- npm audit: jsonwebtoken <=8.5.1 Severity: high
- Types? HOT 1
- axios CVE-2023-45857 HOT 1
- Allow to pass custom axios config HOT 11
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 notifications-node-client.