Methods
create(createData) → {Promise.<FirebaseTokenModel>}
Create a Firebase Token [POST /firebase-tokens]
Parameters
-
createData
FirebaseTokenController.CreateData
The Firebase Token Create Data
Returns
-
Promise.<FirebaseTokenModel>
Source
delete(id) → {Promise.<boolean>}
Delete a Firebase Token [DELETE /firebase-tokens/{id}]
Parameters
-
id
string
The Firebase Token ID
Returns
-
Promise.<boolean>
Source
getAll(queryParametersopt) → {Promise.<Array.<FirebaseTokenModel>>}
List all Firebase Tokens [GET /firebase-tokens]
Parameters
-
queryParameters
FirebaseTokenController.GetAllQueryParameters
<optional>
The Optional Query Parameters
Returns
-
Promise.<Array.<FirebaseTokenModel>>
Source
getOne(id) → {Promise.<FirebaseTokenModel>}
Retrieve a Firebase Token [GET /firebase-tokens/{id}]
Parameters
-
id
string
The Firebase Token ID
Returns
-
Promise.<FirebaseTokenModel>
Source
update(id, updateData) → {Promise.<FirebaseTokenModel>}
Update a Firebase Token [PATCH /firebase-tokens/{id}]
Parameters
-
id
string
The Firebase Token ID
-
updateData
FirebaseTokenController.UpdateData
The Firebase Token Update Data
Returns
-
Promise.<FirebaseTokenModel>
Source
Type Definitions
CreateData
The Create Data for a Firebase Token
Type
-
Object
Properties
-
accountId
string
<optional>
The Account this Firebase Token belongs to
-
token
string
The Firebase Token
-
enabled
boolean
<optional>
Whether the Firebase Token should receive Notifications
-
deviceName
string
<optional>
The Device Name
-
devicePlatform
string
<optional>
The Device Platform
Source
GetAllQueryParameters
The Optional Query Parameters for the getAll Function
Type
-
Object
Properties
-
accountId
string
<optional>
The Account this Firebase Token belongs to
-
token
string
<optional>
The Firebase Token
-
enabled
boolean
<optional>
Whether the Firebase Token should receive Notifications
-
deviceName
string
<optional>
The Device Name
-
devicePlatform
string
<optional>
The Device Platform
Source
UpdateData
The Update Data for a Firebase Token
Type
-
Object
Properties
-
accountId
string
<optional>
The Account this Firebase Token belongs to
-
enabled
boolean
<optional>
Whether the Firebase Token should receive Notifications
-
deviceName
string
<optional>
The Device Name
-
devicePlatform
string
<optional>
The Device Platform