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

firebase-app-distribution

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

firebase-app-distribution

A library that uses Firebase App Distribution APIs.

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Firebase App Distibution npm npm

A NodeJS library used to access Firebase App Distribution APIs.

Pre-requisites

  1. A service account with permission to access the API.
    • Firebase App Distribution Admin role should suffice.

How to use

  1. Create a service account.
    1. Follow steps here to create a service account.
    2. Select the Console tab.
    3. When selecting a role, under Firebase App Distribution Admin.
  2. Download the service account keys.
import { FirebaseAppDistribution } from "firebase-app-distribution";

async function testGetTestersApi() {
  const firebaseAppDistribution = new FirebaseAppDistribution({
    projectNumber: "<PROJECT_NUMBER>",
    credentials: {
      type: "service_account",
      project_id: "<PROJECT_ID>",
      private_key_id: "<PRIVATE_KEY_ID>",
      private_key: "<PRIVATE_KEY>",
      client_email: "<CLIENT_EMAIL>",
      client_id: "<CLIENT_ID>",
      auth_uri: "<AUTH_URI>",
      token_uri: "<TOKEN_URI>",
      auth_provider_x509_cert_url: "<AUTH_PROVIDER_X509_CERT_URL>",
      client_x509_cert_url: "<CLIENT_X509_CERT_URL>",
      universe_domain: "<UNIVERSE_DOMAIN>",
    },
  });
  const testers = await firebaseAppDistribution.testers.list();
  console.log(testers);
}

testGetTestersApi();

Output would look like:

[
  {
    "name": "projects/<PROJECT_NUMBER>/testers/tester000@gmail.com",
    "lastActivityTime": "2023-07-30T13:16:24.259081Z"
  },
  {
    "name": "projects/<PROJECT_NUMBER>/testers/tester001@gmail.com",
    "lastActivityTime": "2023-07-30T13:16:24.259081Z"
  },
  {
    "name": "projects/<PROJECT_NUMBER>/testers/tester002@gmail.com",
    "lastActivityTime": "2023-07-30T13:16:24.259081Z"
  },
  {
    "name": "projects/<PROJECT_NUMBER>/testers/tester003@gmail.com",
    "lastActivityTime": "2023-07-30T13:16:24.259081Z"
  },
  {
    "name": "projects/<PROJECT_NUMBER>/testers/tester004@gmail.com",
    "lastActivityTime": "2023-07-30T13:16:24.259081Z"
  },
  {
    "name": "projects/<PROJECT_NUMBER>/testers/tester005@gmail.com",
    "lastActivityTime": "2023-07-30T13:16:24.259081Z"
  },
  {
    "name": "projects/<PROJECT_NUMBER>/testers/tester006@gmail.com",
    "lastActivityTime": "2023-07-30T13:16:24.259081Z"
  },
  {
    "name": "projects/<PROJECT_NUMBER>/testers/tester007@gmail.com",
    "lastActivityTime": "2023-07-30T13:16:24.259081Z"
  },
  {
    "name": "projects/<PROJECT_NUMBER>/testers/tester008@gmail.com",
    "lastActivityTime": "2023-07-30T13:16:24.259081Z"
  },
  {
    "name": "projects/<PROJECT_NUMBER>/testers/tester009@gmail.com",
    "lastActivityTime": "2023-07-30T13:16:24.259081Z"
  }
]

Method references

FirebaseAppDistribution

  • getAccessToken() - Gets the access token that is used to authenticate requests.
  • testers
    • add() - Adds the specified emails to the testers list.
    • remove() - Removes the specified emails from the testers list.
    • list() - Lists testers.
    • get() - Get a specific tester.

  • groups
    • create() - Creates a group.
    • delete() - Deletes a group.
    • get() - Get a group.
    • list() - List a group.
    • removeTesters() - Removes testers from a group.
    • addTesters() - Adds testers to a group.

Keywords

FAQs

Package last updated on 30 Jul 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