Add a notification for a particular user.
You must provide either event or description or both.
Namespace: NuGardt.Prowl.APIAssembly: NuGardt.Prowl.API (in NuGardt.Prowl.API.dll) Version: 1.0.0.1 (1.0.0.1)
Syntax
public static IAsyncResult AddNotificationBegin( Object Key, string ApiKey, string Application, string Event, string Description, AsyncCallback Callback, string ProviderKey = null, eProwlPriority Priority = eProwlPriority.Normal, string URL = null, bool NoSSL = false )
Parameters
- Key
- Type:
System Object
Your own Key for tracking asynchronous calls.
- ApiKey
- Type:
System String
API keys separated by commas. Each API key is a 40-byte hexadecimal string. When using multiple API keys, you will only get a failure response if all API keys are not valid.
- Application
- Type:
System String
The name of your application or the application generating the event.
- Event
- Type:
System String
The name of the event or subject of the notification.
- Description
- Type:
System String
A description of the event, generally terse. [10000]
- Callback
- Type:
System AsyncCallback
Method to call on completion or failure.
- ProviderKey (Optional)
- Type:
System String
Your provider API key. Only necessary if you have been whitelisted. [40]
- Priority (Optional)
- Type: NuGardt.Prowl.API eProwlPriority
Default value of 0 if not provided. An integer value ranging [-2, 2] representing: -2 = Very Low -1 = Moderate 0 = Normal 1 = High 2 = Emergency Emergency priority messages may bypass quiet hours according to the user's settings.
- URL (Optional)
- Type:
System String
Requires Prowl 1.2 The URL which should be attached to the notification. This will trigger a redirect when launched, and is viewable in the notification list.
- NoSSL (Optional)
- Type:
System Boolean
Optional (Default: False). Call the query without utilizing SSL (encryption).
Return Value
Type:Returns an System.IAsyncResult.
Remarks
See Also