Sha256: 6ab072beb245e1f28f162f73dfd384874572498af389b91e20dc374f7f60b56d

Contents?: true

Size: 331 Bytes

Versions: 1

Compression:

Stored size: 331 Bytes

Contents

require "gerencianet"
require_relative "./credentials"

options = {
  client_id: CREDENTIALS::CLIENT_ID,
  client_secret: CREDENTIALS::CLIENT_SECRET,
  sandbox: CREDENTIALS::SANDBOX
}

body = {
  name: "My first plan",
  repeats: 24,
  interval: 2
}

gerencianet = Gerencianet.new(options)
puts gerencianet.create_plan(body: body)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gerencianet-1.0.0 examples/default/subscriptions/create_plan.rb