@@ -150,7 +150,7 @@ begin
150150 ],
151151 files: [' path/to/attachment.txt' ],
152152 esp_account: ' esp_MYESPACCOUNT' ,
153- version : ' v2' ,
153+ version_name : ' v2' ,
154154 tags: [' tag1' , ' tag2' ],
155155 locale: ' en-US' )
156156 puts result
214214```
215215
216216### Remove Customer from Drip Campaign
217+
217218``` ruby
218219require ' rubygems'
219220require ' send_with_us'
@@ -285,23 +286,9 @@ result = obj.customer_create("visha@example.com")
285286result = obj.customer_delete(" visha@example.com" )
286287```
287288
288- ### Get logs for customer
289- This will retrieve email logs for a customer.
290-
291- Optional Arguments:
292- - ** count** – The number of logs to return. _ Max: 100, Default: 100._
293- - ** created_gt** – Return logs created strictly after the given UTC timestamp.
294- - ** created_lt** – Return logs created strictly before the given UTC timestamp.
295-
296-
297- ``` ruby
298- obj.customer_email_log(' customer@example.com' , count: 1 )
299- ```
300-
301289## Templates
302290
303291``` ruby
304-
305292# List Templates
306293obj.list_templates() # Alternatively, obj.emails()
307294
@@ -314,12 +301,14 @@ obj.delete_template(template_id)
314301# List Template Versions
315302obj.list_template_versions(template_id)
316303
304+ # Get Template Version
305+ obj.get_template_version(template_id, version_id)
306+
317307# Update Template Version
318308obj.update_template_version(template_id, version_id, name, subject, html, text)
319309
320310# Create Template Version
321311obj.create_template_version(template_id, name, subject, html, text)
322-
323312```
324313
325314
@@ -353,16 +342,24 @@ Take a look at our Mailer that you can use similarly to ActionMailer
353342
354343## Logs
355344
345+ ### Get single log
346+
347+ Used to get the details for a single log. The log ID can be obtained by recording the ` receipt_id ` value returned from the ` send ` call.
348+
349+ ``` ruby
350+ obj.log(' log_sld7xWJ3isc23-3' )
351+ ```
352+
353+ ### Get logs for customer
354+ This will retrieve email logs for a customer.
355+
356356Optional Arguments:
357357- ** count** – The number of logs to return. _ Max: 100, Default: 100._
358- - ** offset** – Offset the number of logs to return. _ Default: 0_
359358- ** created_gt** – Return logs created strictly after the given UTC timestamp.
360- - ** created_gte** – Return logs created on or after the given UTC timestamp.
361359- ** created_lt** – Return logs created strictly before the given UTC timestamp.
362- - ** created_lte** – Return logs created on or before the given UTC timestamp.
363360
364361``` ruby
365- obj.logs( count: 1 , offset : 1 )
362+ obj.customer_email_log( ' customer@example.com ' , count : 1 )
366363```
367364
368365## Errors
0 commit comments