Use this client to send emails, text messages and letters using the GOV.UK Notify API.
Useful links:
Ruby client for the GOV.UK Notify API
Home Page: https://rubygems.org/gems/notifications-ruby-client
License: MIT License
Use this client to send emails, text messages and letters using the GOV.UK Notify API.
Useful links:
In the GOV.UK email system, we've had to add our own error handling around calls to .send_email
for unactionable / transient network errors, so we don't get notified about them (vs. other, fixable errors):
Net::OpenTimeout
Net::ReadTimeout
SocketError (getaddrinfo: Name or service not known)
Would it be possible to wrap these exceptions and expose one or two custom exceptions we could handle instead? This means we can decouple our code from the low-level request implementation.
(Note that we don't want to ignore these errors generally on GOV.UK, since they might indicate a real issue e.g. if we don't have a robust retry mechanism. In this case, we retry sending email many times.)
Hi,
I get a load error when attempting to use the notifications-ruby-client gem:
$ irb
>> require 'notifications-ruby-client'
LoadError: cannot load such file -- notifications-ruby-client
from /usr/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from (irb):1
from /usr/bin/irb:11:in `<main>'
Operating systems: CentOS 7, macOS Sierra 10.12
Ruby versions: ruby 2.4.0preview1 (2016-06-20 trunk 55466) [x86_64-linux], ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
The instruction say:
client = Notifications::Client.new(api_key)
But this returns:
ArgumentError: wrong number of arguments (given 1, expected 2..3)
The Speaker class expects a service_id and an api_secret. Can you clarify that the api_secret is the same as the API key that can be configured through the Notify admin console?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.