-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsendgrid.py
executable file
·46 lines (31 loc) · 913 Bytes
/
sendgrid.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"""
This is the main application. It is the starting page for the sendgrid api
helper class.
"""
class SendGridApi(object):
def __init__(self, username, password):
"""Constructor.
Args:
username: Username used in making API requests
password: Password use in making API requests
"""
self.username = username
self.password = password
"""Mutator methods
Used to set specific paramters within SendGrid Api
"""
def set_username(self, username):
self._username = username
def set_password(self, password):
self._password = password
def set_from(self, from_email_address):
self._from = from_email_address
"""Accessor methods
Used to get specific paramters within SendGrid Api
"""
def get_username(self):
return self._username
def get_password(self):
return self._password
def get_from(self):
return self._from