NetDNA Developers
DocsSample CodeRecipesAPI FAQPlugins
Request a quote
Home / Docs / Recipes
Developers

API cookbook

Purge, sign, deploy, Magento.

Working recipes on top of the 2013 REST API. These are not the original sample-code stubs; they are step-by-step pages the stubs never had.

Purge a zone from PHP

Call the NetDNA REST API to purge a pull zone after a deploy. Uses the 2013 OAuth API and the PHP SDK 2.x notes from the blog.

Generate signed URLs

EdgeSecurity token authentication for private downloads and paid video.

Hook purge into your deploy

Fire a zone purge when CI finishes so CSS/JS cannot stay stale.

Install the Magento CDN plugin

Point Magento 1 media and skin URLs at a NetDNA pull zone.

Magento 2 static and media URLs

Point Magento 2 static and media base URLs at a NetDNA pull zone, then purge on deploy.

NetDNA

Recovered 2013 NetDNA documentation, redesigned with the original copy and page structure.

Network

  • NetDNA
  • Developers
  • Support
  • Blog
  • Status

Learn

  • Guides
  • CDN comparisons
  • Glossary

Help

  • 1 (877) 563 8362
  • Los Angeles, California
Content preserved from Wayback Machine snapshots through 14 October 2013.