Skip to content

rgenerator/ruby-akamai_token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Ruby AkamaiToken

Generate query string parameter for Akamai CDN URLs.

This code was extracted into a module form the Akamai Token v2 command line program.

Usage

require 'akamai_token'
require 'uri'

t = AkamaiToken.new(key)
q = t.create(:start_time => Time.now, :url => '/assets/garth.flac')
uri = URI::HTTPS.build :host => 'rgnrtr.com', :path => '/assets/garth.flac', :query => q

# Or, set some defaults
t = AkamaiToken.new(key, defaults)
# ...

About

Generate query string parameters for Akamai CDN URLs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages