Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 693 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 693 Bytes

AgoraServicesRuby

Provide some ruby demos using agora services

Development Environment

Ruby 2.6.3

Usage

Generate the Authorization which will be used in Http Header.

require './cloud_recording/authorization_generator.rb'

customer_id = 'customer_id'
customer_certificate = 'customer_certificate'
AuthorizationGenerator.new.generate_authorization(customer_id, customer_certificate) # Authorization in Http Header

Check the signature which was added in Http Header.

require './message_notification_service/signature_checker.rb'

signature = 'signature'
request_body = 'request_body'
SignatureChecker.new.check_signature(signature, request_body) # true or false