0.01
No release in over 3 years
Low commit activity in last 3 years
Client to the Edgecast API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

edgecast_api

Client to the Edgecast API (currently only load and purge endpoints).

Installation

To install:

gem install edgecast_api

Or if you use Bundler, add this to your Gemfile

gem 'edgecast_api'

Usage

edgecast_api = EdgecastApi.new(account_id, api_token, media_base_uri)

edgecast_api.load(media_type, path)
edgecast_api.purge(media_type, path)

Example:

edgecast_api = EdgecastApi.new('ab12', 'asdf1234', 'http://wac.cd34.edgecastcdn.net/123EF/my-site')

edgecast_api.load(:http_small_object, '/path/to/object.png')
edgecast_api.purge(:http_small_object, '/path/to/object.png')

Note that it takes Edgecast five minutes or so to completely purge an object, and you can check the status in their admin interface.

Contributing to edgecast_api

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
  • Fork the project.
  • Start a feature/bugfix branch.
  • Commit and push until you are happy with your contribution.
  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright

Copyright (c) 2012 Brian Ray. See LICENSE.txt for further details.