parent
							
								
									02f8a32b46
								
							
						
					
					
						commit
						534b93e142
					
				
					 13 changed files with 425 additions and 29 deletions
				
			
		
							
								
								
									
										12
									
								
								examples/publish-python/publish.py
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										12
									
								
								examples/publish-python/publish.py
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,12 @@ | |||
| #!/usr/bin/env python3 | ||||
| 
 | ||||
| import requests | ||||
| 
 | ||||
| resp = requests.get("https://ntfy.sh/mytopic/trigger", | ||||
|     data="Backup successful 😀".encode(encoding='utf-8'), | ||||
|     headers={ | ||||
|         "Priority": "high", | ||||
|         "Tags": "warning,skull", | ||||
|         "Title": "Hello there" | ||||
|     }) | ||||
| resp.raise_for_status() | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue