forked from Elara6331/itd
		
	Update itctl to use api
This commit is contained in:
		
							
								
								
									
										14
									
								
								api/notify.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								api/notify.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| package api | ||||
|  | ||||
| import "go.arsenm.dev/itd/internal/types" | ||||
|  | ||||
| func (c *Client) Notify(title string, body string) error { | ||||
| 	_, err := c.request(types.Request{ | ||||
| 		Type: types.ReqTypeNotify, | ||||
| 		Data: types.ReqDataNotify{ | ||||
| 			Title: title, | ||||
| 			Body: body, | ||||
| 		}, | ||||
| 	}) | ||||
| 	return err | ||||
| } | ||||
		Reference in New Issue
	
	Block a user