Custom Services
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".
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.clearspring.com/favicon.png"}
}
</script>
<a href="http://webarchive.nationalarchives.gov.uk/20110813032310/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://clearspring.com/favicon.png"}
}
</script>
<a class="addthis_button_www.addthis.com"></a>
API Reference
Check out the full Client API specification to learn more.