mirror of
				https://github.com/brygphilomena/pyhuntress.git
				synced 2025-11-04 08:17:29 +00:00 
			
		
		
		
	fixed phishing_campaign and phishing_scenarios to properly use - instead of _ in the api endpoint
This commit is contained in:
		
							parent
							
								
									835b0d3649
								
							
						
					
					
						commit
						f305f898f0
					
				@ -1,6 +1,6 @@
 | 
			
		||||
[project]
 | 
			
		||||
name = "pyhuntress"
 | 
			
		||||
version = "0.2.8"
 | 
			
		||||
version = "0.2.9"
 | 
			
		||||
authors = [
 | 
			
		||||
  { name="Peter Annabel", email="peter.annabel@gmail.com" },
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
@ -17,7 +17,7 @@ class AccountsIdPhishingCampaignsEndpoint(
 | 
			
		||||
    IPaginateable[SATPhishingCampaigns, HuntressSATRequestParams],
 | 
			
		||||
):
 | 
			
		||||
    def __init__(self, client, parent_endpoint=None) -> None:
 | 
			
		||||
        HuntressEndpoint.__init__(self, client, "phishing_campaigns", parent_endpoint=parent_endpoint)
 | 
			
		||||
        HuntressEndpoint.__init__(self, client, "phishing-campaigns", parent_endpoint=parent_endpoint)
 | 
			
		||||
        IGettable.__init__(self, SATPhishingCampaigns)
 | 
			
		||||
        IPaginateable.__init__(self, SATPhishingCampaigns)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -17,7 +17,7 @@ class AccountsIdPhishingScenariosEndpoint(
 | 
			
		||||
    IPaginateable[SATPhishingScenarios, HuntressSATRequestParams],
 | 
			
		||||
):
 | 
			
		||||
    def __init__(self, client, parent_endpoint=None) -> None:
 | 
			
		||||
        HuntressEndpoint.__init__(self, client, "phishing_scenarios", parent_endpoint=parent_endpoint)
 | 
			
		||||
        HuntressEndpoint.__init__(self, client, "phishing-scenarios", parent_endpoint=parent_endpoint)
 | 
			
		||||
        IGettable.__init__(self, SATPhishingScenarios)
 | 
			
		||||
        IPaginateable.__init__(self, SATPhishingScenarios)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user