Skip to content

Reference Push

Benedikt Schulze Baek edited this page Feb 23, 2017 · 3 revisions

This method send a push notification to a specific UAC group. You need to provide a GroupID. On success the http status 'created' will be returned. Push notifications can only be send if the apps exist.

POST https://api.chayns.net/v2.0/{LocationID}/UAC/{GroupID}/Push

Permissions
'PublicInfo', 'UserInfo', 'SeeUAC', 'Push', 'DeviceInfo'

Header
Authorization: Basic {TappId}:{Secret}

The part 'TappID:Secret' has to be Base64 encoded.

Body

  • Alert : string - The message, that will be send as push.

Parameter

  • LocationID : int - Can be found in chayns.env.site.
  • TappID : int - Can be found in chayns.env.site.tapp.
  • GroupID : int - Can bet get using chayns.env.site.tapp.userGroupIds.

This method send a push notification to a specific User. You need to provide a UserID and a LocationID. On success the http status 'created' will be returned. Push notifications can only be send if the apps exist.

POST https://api.chayns.net/v2.0/{LocationID}/User/{UserID}/Push

Permissions
'PublicInfo', 'UserInfo', 'SeeUAC', 'Push', 'DeviceInfo'

Header
Authorization: Basic {TappId}:{Secret}

The part 'TappID:Secret' has to be Base64 encoded.

Body

  • Alert : string - The message, that will be send as push.

Parameter

  • LocationID : int - Can be found in chayns.env.site.
  • TappID : int - Can be found in chayns.env.site.tapp.
  • UserID : int - Can bet found in chayns.env.user.