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

repro-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

repro-client

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Build Status

repro-client

Repro API Client

Install

$ gem install repro-client

or add to your Gemfile

gem 'repro-client'

Usage

Send push notification

require 'repro/client'
client = Repro::Client.new('repro_api_token')
user_ids = [1, 2, 3]
payload = { message: 'Hello Repro!' }
client.push('push_id', user_ids, payload)
Payload format
  1. Standard format
{
  message: 'Hello Repro!',
  deeplink_url: 'url',
  sound: 'sound'
}
  1. Custom

You need to set the content as Hash

Update user profile

require 'repro/client'
client = Repro::Client.new('repro_api_token')
user_id = 'user-123'
payload = [{ key: 'Job', type: 'string', value: 'Developer' }]
client.update_user_profiles(user_id, payload)
Payload format

See Repro Official Document

Supported Ruby Versions

Ruby 2.4.0 or higher

FAQs

Package last updated on 20 Mar 2018

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