FirebaseSpecific

Update server credentials

This endpoint allows you to update firebase server credentials

Chains Supported:

Mainnet: Ethereum, BSC, Matic, Celo, Avalanche, Xinfin, Klaytn, Kadena, Velas, Cronos, Fuse, Solana, Fantom, Arbitrum, Aurora.

Testnet: bsc-testnet, klaytn-testnet and polygon-testnet(mumbai-testnet)

In order to use notifications for testnets use

  https://testnet-notify.unmarshal.com/v1/firebase/credentials    

along with all required body.

unmarshal.Notifications
   .Firebase.UpdateServerCredentials(serverCredentials)
   .then(({data}) => console.log(data))
Request
Security:
Request Body schema: application/json
type
required
string
project_id
required
string
private_key_id
required
string
private_key
required
string
client_email
required
string
client_id
required
string
auth_uri
required
string
token_uri
required
string
auth_provider_x509_cert_url
required
string
client_x509_cert_url
required
string
Responses
200
post/firebase/credentials
Request samples
application/json
{}

Refresh Token

This endpoint allows you to refresh firebase token

Chains Supported:

Mainnet: Ethereum, BSC, Matic, Celo, Avalanche, Xinfin, Klaytn, Kadena, Velas, Cronos, Fuse, Solana, Fantom, Arbitrum, Aurora.

Testnet: bsc-testnet, klaytn-testnet and polygon-testnet(mumbai-testnet)

In order to use notifications for testnets use

 https://testnet-notify.unmarshal.com/v1/firebase/refresh-token    

along with all required body.

unmarshal.Notifications
   .Firebase.RefreshFCMToken({
       fcmToken: "FCM_TOKEN",
       deviceId: "DEVICE_ID"
   })
   .then(({data}) => console.log(data))
Request
Security:
Request Body schema: application/json
fcm_token
required
string
device_id
required
string
Responses
200
post/firebase/refresh-token
Request samples
application/json
{
  • "fcm_token": "REPLACE_WITH_YOUR_FCM_TOKEN",
  • "device_id": "REPLACE_WITH_YOUR_DEVICE_ID"
}