Skip to content

Commit 059d112

Browse files
committedMay 27, 2020
adding gemspec and simple file
1 parent 1b93760 commit 059d112

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎pepipost.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Gem::Specification.new do |s|
22
s.name = 'pepipost'
33
s.version = '5.0.0'
44
s.summary = 'pepipost'
5-
s.description = 'Pepipost is a cloud-based SMTP relay service that delivers highly personalised transactional emails to the inbox within seconds of your customer’s transaction'
5+
s.description = 'Pepipost API is used to send the mail to the receipients specified in the docs'
66
s.authors = ['APIMatic SDK Generator']
77
s.email = 'helpdesk@pepipost.com'
88
s.homepage = 'https://apimatic.io'

‎simple-usage.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ api_key = 'Your api_key here'
1010

1111
client = PepipostClient.new(api_key: api_key)
1212

13-
send_controller = client.send
13+
mail_send_controller = client.mail_send
1414

1515
body = Send.new
1616

@@ -39,8 +39,8 @@ body.personalizations[0].to[0].name = 'random-1'
3939
body.personalizations[0].to[0].email = 'random-1@mydomain.name'
4040

4141
begin
42-
result = send_controller.create_generate_the_mail_send_request(body)
43-
puts JSON.pretty_generate(result)
42+
result = mail_send_controller.create_generatethemailsendrequest(body)
43+
puts (result)
4444
rescue APIException => ex
4545
puts "Caught APIException: #{ex.message}"
4646
end

0 commit comments

Comments
 (0)