Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tocaro_webhook

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tocaro_webhook

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

TocaroWebhook

Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/tocaro_webhook. To experiment with that code, run bin/console for an interactive prompt.

TODO: Delete this and the text above, and describe your gem

Installation

Add this line to your application's Gemfile:

gem 'tocaro_webhook'

And then execute:

$ bundle install

install palne ruby

$ gem install tocaro_webhook

Usage

Call TocaroWebhook::Sender class.

require 'tocaro_webhook'

webhook_sender = TocaroWebhook::Sender.new('your api key')

exec send message

webhook_sender.payload.add_attachment(title: "title", value: "value", image_url: "htttp://image_url.com")
# or some attribute
# webhook_sender.payload.add_attachment(title: "title")
# webhook_sender.payload.add_attachment(value: "value")
# webhook_sender.payload.add_attachment(value: "value", image_url: "htttp://image_url.com")
webhook_sender.exec

some attachments

webhook_sender.payload.add_attachment(title: "title", value: "value", image_url: "http://image_url.com")
webhook_sender.payload.add_attachment(image_url: "http://image_url.com")
webhook_sender.payload.add_attachment(title: "title", value: "value")

webhook_sender.exec

return HTTP response class.

res = webhook_sender.exec
res.code # => "200"

test

Send test exec when .env file write your webhook key. Env file use dotenv gem. (https://github.com/bkeepers/dotenv)

TEST_TOCARO_WEB_HOOK_KEY="your web hook key"

FAQs

Package last updated on 26 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc