Sha256: 90627e0329bc648ca81f9130e765b13402b8ae235cfeb15c77e7c4dfaa0f8c88

Contents?: true

Size: 905 Bytes

Versions: 1

Compression:

Stored size: 905 Bytes

Contents

require 'bitmovin-ruby'

# Adding finished webhook to encoding
finished_webhook = Bitmovin::Webhooks::EncodingFinishedWebhook.new(
    {
        method: 'POST',
        insecure_ssl: 'false',
        url: 'http://httpbin.org/post',
        encryption: Bitmovin::Webhooks::WebhookEncryption.new({
                                                                  key: 'mySecretKey',
                                                                  type: 'AES'
                                                              }),
        signature: Bitmovin::Webhooks::WebhookSignature.new({
                                                                key: 'mySecretKey',
                                                                type: 'HMAC'
                                                            })
    }
)

finished_webhook.save!
puts "Added finished webkook with id #{finished_webhook.id}!"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bitmovin-ruby-0.4.0 examples/create_encoding_finished_webhook.rb