@@ -124,12 +124,12 @@ def delete(self, template_id):
124124 results = self .request ('DELETE' , uri )
125125 return results
126126
127- def get (self , template_id , is_draft = None ):
127+ def get (self , template_id , draft = None ):
128128 """
129129 Get a template by ID
130130
131131 :param str template_id: ID of the template you want to retrieve
132- :param bool is_draft : Defaults to None. If True, returns the most
132+ :param bool draft : Defaults to None. If True, returns the most
133133 recent draft template. If False, returns the most recent published
134134 template. If None, returns the most recent template version
135135 regardless of draft or published.
@@ -139,8 +139,8 @@ def get(self, template_id, is_draft=None):
139139 """
140140 uri = "%s/%s" % (self .uri , template_id )
141141 params = {}
142- if is_draft is not None :
143- params ['draft' ] = str (is_draft ).lower ()
142+ if draft is not None :
143+ params ['draft' ] = str (draft ).lower ()
144144 results = self .request ('GET' , uri , params = params )
145145 return results
146146
@@ -154,15 +154,15 @@ def list(self):
154154 results = self .request ('GET' , self .uri )
155155 return results
156156
157- def preview (self , template_id , substitution_data , is_draft = None ):
157+ def preview (self , template_id , substitution_data , draft = None ):
158158 """
159159 Get a preivew of your template by ID with the
160160 provided substitution_data
161161
162162 :param str template_id: ID of the template you want to retrieve
163163 :param dict substitution_data: data to be substituted in the
164164 template content
165- :param bool is_draft : Defaults to None. If True, previews the most
165+ :param bool draft : Defaults to None. If True, previews the most
166166 recent draft template. If False, previews the most recent published
167167 template. If None, previews the most recent template version
168168 regardless of draft or published.
@@ -173,8 +173,8 @@ def preview(self, template_id, substitution_data, is_draft=None):
173173 """
174174 uri = "%s/%s/preview" % (self .uri , template_id )
175175 params = {}
176- if is_draft is not None :
177- params ['draft' ] = str (is_draft ).lower ()
176+ if draft is not None :
177+ params ['draft' ] = str (draft ).lower ()
178178 results = self .request ('POST' ,
179179 uri ,
180180 params = params ,
0 commit comments