Giter Site home page Giter Site logo

magicbell-io / magicbell-ruby Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 6.0 151 KB

A Ruby gem for communicating with the MagicBell API

Home Page: https://magicbell.com/docs

License: MIT License

Ruby 98.40% Shell 0.17% Logos 1.43%
email email-notification magicbell notification-inbox notifications push-notifications ruby web-push-notifications

magicbell-ruby's People

Contributors

darrencauthon avatar daveallie avatar dependabot-preview[bot] avatar gauravtiwari5050 avatar josuemontano avatar magicbell-bot avatar nisanthchunduru avatar ousmanedev avatar unamashana avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

magicbell-ruby's Issues

[Features] Automatically retry requests on network errors

Enable automatic retries on requests that fail due to a transient problem by configuring the maximum number of retries:

Global configuration

MagicBell.configure do |config|
  config.api_key = 'MAGICBELL_API_KEY'
  config.api_secret = 'MAGICBELL_API_SECRET'
  config.max_network_retries = 2
end

Per-request configuration

  magicbell = MagicBell::Client.new
  magicbell.max_network_retries = 2

Request example

# If the first request doesn't succeed, it will get retried twice

magicbell.create_notification(
  title: 'Rob assigned a task to you',
  recipients: [{
    external_id: 'DATABASE_ID'
  }]
)

[Chore] Add Contributing section to README

As a contributor, it's difficult to understand what you'd like me to do in order to be able to submit pull requests to this gem.

The PR templates mentions linters, security checks, and tests, but does not explain how to run or validate any of these things.

A contributing section in the README would be mighty helpful in explaining the few steps required for checking out the codebase and validating that changes are in-line with the requirements of the gem.

[Features] Fallback to the global configuration if credentials are invalid

Is your feature request related to a problem? Please describe.
If one forgets to enter the right MagicBell credentials, people might be worried which account the notifications would go out on.

Describe the solution you'd like
Fallback to the global configuration if the given credentials are invalid.

Describe alternatives you've considered
Raise an error if the given credentials are invalid.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.