This repository has been archived by the owner on Mar 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 193
Web Activities
Mathieu Pillard edited this page Oct 30, 2015
·
7 revisions
The Marketplace can interact with outside apps through Web Activities. The supported activities are documented below:
Launch the Marketplace at an app's detail page.
By slug:
var activity = new MozActivity({
name: "marketplace-app",
data: {slug: "the-slug-of-the-app", src: "the-name-of-the-referrer"}
});
By manifest URL:
var activity = new MozActivity({
name: "marketplace-app",
data: {manifest_url: "http://the-domain-of-the-app/manifest.webapp", src: "e.me"}
});
Launch the Marketplace at an app's ratings listing page.
var activity = new MozActivity({
name: "marketplace-app-rating",
data: {slug: "the-slug-of-the-app"}
});
Launch the Marketplace at a category listing
var activity = new MozActivity({
name: "marketplace-category",
data: {slug: "the-slug-of-the-category"}
});
Launch the Marketplace and initiate a search for a query.
var activity = new MozActivity({
name: "marketplace-search",
data: {query: "the search query"}
});
Launch the Marketplace at an addon's detail page.
By slug:
var activity = new MozActivity({
name: "marketplace-addon",
data: {slug: "the-slug-of-the-addon", src: "the-name-of-the-referrer"}
});
Launch the Marketplace at an website's detail page.
By id:
var activity = new MozActivity({
name: "marketplace-website",
data: {id: 4815162342, src: "the-name-of-the-referrer"}
});