Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

firebase-dynamic-links

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

firebase-dynamic-links

unofficial package to create firebase dynamic links

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9.5K
decreased by-2.64%
Maintainers
1
Weekly downloads
 
Created
Source

npm

Overview

This package provides a wrapper for Firebase Dynamic Links and View Dynamic Links Analytics Data REST APIs. It aims to define types for this APIs.

In order to use this package, you can read Short Link API and Analytics API full API documentations.

Installation

The Firebase Dynamic Links is available on npm as firebase-dynamic-links:

$ npm install --save firebase-dynamic-links

Usage

Setup

Take note of your project Web Api Key from setting page of the Firebase console. Import the package and then create an instance of the FirebaseDynamicLinks as follow:

import { FirebaseDynamicLinks } from 'firebase-dynamic-links';

const firebaseDynamicLinks = new FirebaseDynamicLinks(/* Web Api Key */);

Examples

const { shortLink, previewLink } = await firebaseDynamicLinks.createLink({
  longDynamicLink: 'https://example.page.link/?link=https://www.example.com/&apn=com.example.android&ibi=com.example.ios',
});
const { shortLink, previewLink } = await firebaseDynamicLinks.createLink({
  dynamicLinkInfo: {
    domainUriPrefix: 'https://example.page.link',
    link: 'https://www.example.com/',
    androidInfo: {
      androidPackageName: 'com.example.android',
    },
    iosInfo: {
      iosBundleId: 'com.example.ios',
    },
  },
});
const { shortLink, previewLink } = await firebaseDynamicLinks.createLink({
  longDynamicLink: 'https://example.page.link/?link=http://www.example.com/&apn=com.example.android&ibi=com.example.ios',
  suffix: {
    option: 'UNGUESSABLE',
  },
});
const { linkEventStats } = await firebaseDynamicLinks.getLinkStats('https://example.page.link/wXYz', 7, accessToken);

Keywords

FAQs

Package last updated on 16 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc