File tree Expand file tree Collapse file tree 4 files changed +80
-0
lines changed
Expand file tree Collapse file tree 4 files changed +80
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments