Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

itkrt2y/repro-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

repro-client

Repro API Client

Install

$ gem install repro-client

or add to your Gemfile

gem 'repro-client'

Usage

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)
  1. Standard format
{
  message: 'Hello Repro!',
  deeplink_url: 'url',
  sound: 'sound'
}
  1. Custom

You need to set the content as Hash

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

About

Repro API Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published