Chapter 8. Developing a third-party JavaScript SDK

This chapter covers

  • Initializing an SDK synchronously and asynchronously
  • Exposing public functions
  • Versioning techniques
  • Wrapping and communicating with a web services API

Let’s flash-forward to the not-so-distant future. The Camera Stork product widget has been an unparalleled success, and is helping drive hundreds of thousands of visitors from publisher websites to each month. Publishers, too, are sharing in the success; you’ve even introduced a revenue-sharing program that pays publishers a share of each sale you make from visitors that are referred through the widget. And all of this thanks to a little book on third-party JavaScript—who knew?

It gets better. During ...

Get Third-Party JavaScript now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.