firebase-app-distribution
v0.0.5
Published
A library that uses Firebase App Distribution APIs.
Readme
Firebase App Distibution

A NodeJS library used to access Firebase App Distribution APIs.
Pre-requisites
- A service account with permission to access the API.
Firebase App Distribution Adminrole should suffice.
How to use
- Create a service account.
- Follow steps here to create a service account.
- Select the
Consoletab. - When selecting a role, under
Firebase App Distribution Admin.
- Download the service account keys.
- Follow the steps here to download the service account key.
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/[email protected]",
"lastActivityTime": "2023-07-30T13:16:24.259081Z"
},
{
"name": "projects/<PROJECT_NUMBER>/testers/[email protected]",
"lastActivityTime": "2023-07-30T13:16:24.259081Z"
},
{
"name": "projects/<PROJECT_NUMBER>/testers/[email protected]",
"lastActivityTime": "2023-07-30T13:16:24.259081Z"
},
{
"name": "projects/<PROJECT_NUMBER>/testers/[email protected]",
"lastActivityTime": "2023-07-30T13:16:24.259081Z"
},
{
"name": "projects/<PROJECT_NUMBER>/testers/[email protected]",
"lastActivityTime": "2023-07-30T13:16:24.259081Z"
},
{
"name": "projects/<PROJECT_NUMBER>/testers/[email protected]",
"lastActivityTime": "2023-07-30T13:16:24.259081Z"
},
{
"name": "projects/<PROJECT_NUMBER>/testers/[email protected]",
"lastActivityTime": "2023-07-30T13:16:24.259081Z"
},
{
"name": "projects/<PROJECT_NUMBER>/testers/[email protected]",
"lastActivityTime": "2023-07-30T13:16:24.259081Z"
},
{
"name": "projects/<PROJECT_NUMBER>/testers/[email protected]",
"lastActivityTime": "2023-07-30T13:16:24.259081Z"
},
{
"name": "projects/<PROJECT_NUMBER>/testers/[email protected]",
"lastActivityTime": "2023-07-30T13:16:24.259081Z"
}
]Method references
FirebaseAppDistribution
