Creates an app integration push notification with import file settings
Header parameters
Brand-URLstringRequiredExample:
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
Auth-KeystringRequiredExample:
This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.
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
403
The user's access was denied.
application/json
429
API call exceeded rate limit due to too many requests.
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?