Any public service is eligible to be placed in our directory for all to use. Since approval can take up to a month, and some services are not for public consumption (e.g., on a private intranet, or invitation-only), you may also add any service to your own menu at run-time.
Optional Arguments
services_customOptional- Specify your own AddThis bookmarking service with a JSON object:
{
name: "My Service",
url: "http://share.example.com?url={{url}}&title={{title}}",
icon: "http://example.com/icon.jpg"
}
All three fields must be present for each custom service. Any custom service is available to all compact menus on a page. In an AddThis toolbox, the custom service's hostname is its unique identifier. In the example above, you could create a chiclet for "My Service" with the class "addthis_button_share.example.com". All three fields must be present for each custom service. Any custom service is available to all compact menus on a page. In an AddThis toolbox, the custom service's hostname is its unique identifier. In the example above, you could create a chiclet for "My Service" with the class "addthis_button_share.example.com". To specify the size of the image, you need to append either "16x16", "20x20" or "32x32" to the class as well (if nothing is specified, the icon is assumed to be 16x16).
Code Example
This example uses AddThis.com.
<script type="text/javascript">
var addthis_config = {
services_custom: {
name: "AddThis",
url: "http://www.addthis.com/bookmark.php?url={{url}}&title={{title}}",
icon: "http://www.addthis.com/images/addthis32.gif"}
}
</script>
<a href="http://www.addthis.com/bookmark.php"
class="addthis_button"></a>
This example uses the AddThis toolbox.
<script type="text/javascript">
var addthis_config = {
services_custom: {
name: "AddThis",
url: "http://www.addthis.com/bookmark.php?url={{url}}&title={{title}}",
icon: "http://www.addthis.com/images/addthis32.gif"}
}
</script>
<a class="addthis_button_www.addthis.com 32x32"></a>
API Reference
Check out the full Client API specification to learn more.