Skip to content

Commit bc63ca1

Browse files
committed
Added method placeholders
1 parent 7aa9ef0 commit bc63ca1

File tree

4 files changed

+80
-0
lines changed

4 files changed

+80
-0
lines changed

gophish/groups.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
class API(object):
2+
def __init__(self, api, endpoint='/groups'):
3+
self.api = api
4+
self.endpoint = endpoint
5+
6+
def get(group_id=None):
7+
""" Gets one or more groups """
8+
raise NotImplementedError
9+
10+
def post(group):
11+
""" Creates a new group """
12+
raise NotImplementedError
13+
14+
def put(group):
15+
""" Edits a group """
16+
raise NotImplementedError
17+
18+
def delete(group_id):
19+
""" Deletes a group by ID """
20+
raise NotImplementedError

gophish/pages.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
class API(object):
2+
def __init__(self, api, endpoint='/pages'):
3+
self.api = api
4+
self.endpoint = endpoint
5+
6+
def get(page_id=None):
7+
""" Gets one or more pages """
8+
raise NotImplementedError
9+
10+
def post(page):
11+
""" Creates a new page """
12+
raise NotImplementedError
13+
14+
def put(page):
15+
""" Edits a page """
16+
raise NotImplementedError
17+
18+
def delete(page_id):
19+
""" Deletes a page by ID """
20+
raise NotImplementedError

gophish/smtp.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
class API(object):
2+
def __init__(self, api, endpoint='/smtp'):
3+
self.api = api
4+
self.endpoint = endpoint
5+
6+
def get(smtp_id=None):
7+
""" Gets one or more SMTP sending profiles """
8+
raise NotImplementedError
9+
10+
def post(smtp):
11+
""" Creates a new SMTP sending profile """
12+
raise NotImplementedError
13+
14+
def put(smtp):
15+
""" Edits an SMTP sending profile """
16+
raise NotImplementedError
17+
18+
def delete(smtp_id):
19+
""" Deletes an SMTP sending profile by ID """
20+
raise NotImplementedError

gophish/templates.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
class API(object):
2+
def __init__(self, api, endpoint='/templates'):
3+
self.api = api
4+
self.endpoint = endpoint
5+
6+
def get(template_id=None):
7+
""" Gets one or more templates """
8+
raise NotImplementedError
9+
10+
def post(template):
11+
""" Creates a new template """
12+
raise NotImplementedError
13+
14+
def put(template):
15+
""" Edits a template """
16+
raise NotImplementedError
17+
18+
def delete(template_id):
19+
""" Deletes a template by ID """
20+
raise NotImplementedError

0 commit comments

Comments
 (0)