Class NotiferClient
java.lang.Object
io.notifer.jenkins.NotiferClient
- All Implemented Interfaces:
Serializable
HTTP client for communicating with Notifer API.
Uses Jenkins ProxyConfiguration to support corporate proxies.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classException thrown when Notifer API request fails.static classResponse from Notifer API. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
API_URL
-
-
Constructor Details
-
NotiferClient
Create a new Notifer client.- Parameters:
token- Topic access token with write permission
-
-
Method Details
-
send
public NotiferClient.NotiferResponse send(String topic, String message, String title, int priority, List<String> tags) throws NotiferClient.NotiferException Send a notification to a topic.- Parameters:
topic- Topic namemessage- Message contenttitle- Optional title (can be null)priority- Priority 1-5 (default 3)tags- Optional list of tags (can be null or empty)- Returns:
- Response from the server
- Throws:
NotiferClient.NotiferException- if the request fails
-