Creates an app integration push notification with import file settings

Create a new app integration push notification from file settings.

post
Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.

Example: YOUR_AUTH_KEY
Body
AppIntegrationIdstringRequired

The id of the app integration to import.

Filestring · binaryRequired

The file setting to import.

Responses
201

The request was successful.

application/json
post
POST /api/v1/app-integrations/push-notification/import HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: multipart/form-data
Accept: */*
Content-Length: 998

{
  "appIntegrationId": "sApKpllz4sAplsmzha",
  "code": "FIREBASE_PUSH",
  "name": "Firebase Push Notification",
  "projectId": "firebase-project-123",
  "clientEmail": "[email protected]",
  "clientId": "1234567890",
  "privateKey": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASC...\n-----END PRIVATE KEY-----\n",
  "authURL": "https://accounts.google.com/o/oauth2/auth",
  "tokenURL": "https://oauth2.googleapis.com/token",
  "authProviderX509CertURL": "https://www.googleapis.com/oauth2/v1/certs",
  "clientX509CertURL": "https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk%40firebase-project-123.iam.gserviceaccount.com",
  "universeDomain": "firebaseapp.com",
  "apiKey": "AIzaSyD-EXAMPLE-KEY-1234567890",
  "authDomain": "firebase-project-123.firebaseapp.com",
  "storageBucket": "firebase-project-123.appspot.com",
  "messagingSenderId": "1234567890",
  "appId": "1:1234567890:web:abcdef123456",
  "measurementId": "G-EXAMPLEID",
  "vapidKey": "BEXAMPLEVAPIDKEY1234567890",
  "isDefault": true
}
{
  "success": true,
  "statusCode": 201,
  "message": "The request was successful.",
  "data": {
    "appIntegration": {
      "type": "PaymentGateway",
      "name": "Stripe",
      "domain": "https://stripe.com",
      "description": "Stripe payment gateway",
      "logoURL": null,
      "status": "Active",
      "id": "sApKpllz4sAplsmzha"
    },
    "status": "Active",
    "isDefault": false,
    "vapidKey": "vapid-key",
    "measurementId": "measurement-id",
    "appId": "app-id",
    "messagingSenderId": "messaging-sender-id",
    "storageBucket": "storage-bucket",
    "authDomain": "auth-domain",
    "apiKey": "api-key",
    "id": "sApKpllz4sAplsmzha",
    "universeDomain": "universe-domain",
    "authProviderX509CertURL": "auth-provider-x509-cert-url",
    "tokenURL": "token-url",
    "authURL": "auth-url",
    "privateKey": "private-key",
    "clientId": "client-id",
    "clientEmail": "client-email",
    "projectId": "project-id",
    "name": "name",
    "code": "code",
    "clientX509CertURL": "client-x509-cert-url"
  },
  "errors": []
}

Last updated

Was this helpful?