AddThis Academy

An ever-growing library of resources to help you become a better online marketer.

The Sharing Button API Overview

The AddThis Client API is based on the principles of unobtrusive JavaScript, taking a page from modern JavaScript toolkits like jQuery that separate markup and behavior with the following goals in mind:

  • If you’re not a JavaScript wizard, the most common customizations should still be easy
  • In fact, most use cases should be covered with as little JavaScript as possible
  • But even the most complicated configurations should be possible (for example, multiple buttons on a page behaving differently)

Our Client API supports global configuration as well as per-element configuration–every button on a page can behave differently in almost every regard. You might not need to ever go that far. But you could.

An Illustrative Example

What You Type
<a class="addthis_button_compact"></a>
What You See

Understanding this API

AddThis sharing tools rely heavily on three core web concepts: HTML, CSS, and JavaScript. If you don’t have a good understanding of these this API will be less than helpful for you. If you feel you don’t have a good understanding of these languages, check out these resources to help you learn.

  1. HTML Tutorials from HTML.net
  2. Getting Started with CSS from the Mozilla Developer Network
  3. Learn JavaScript at Code Academy

 

The Sharing Button API Overview
1 (20%) 1 vote

Was this article helpful to you?