Socket
Book a DemoInstallSign in
Socket

e_pochta

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

e_pochta

0.5.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

#e_pochta This is an API wrapper for online SMS and Email service E-pochta and it's API v3.0. You can read about this API [here (russian)] (http://www.epochta.ru/products/sms/v3.php)

##Usage

# provide your user keys
epochta = EPochtaService::EPochtaSMS.new(:private_key => 'your_private_key', :public_key => 'your_public_key')
# send sms
result = epochta.send_sms({
		# read the api to provide correct arguments
		'sender' => 'Name',
		'text'	 => 'Hello World!',
		'phone'	 => '71234567890',
		'datetime' => '',
		'sms_lifetime' => 0
	})

puts result # sms_id on epochta server 

##Email From version 0.5.0 gem has new class for EPochta email campaigns.

# provide your user keys
epochta = EPochtaService::EPochtaEmail.new(:private_key => 'your_private_key', :public_key => 'your_public_key')
# create email campaign
campaign = epochta.createCampaign({
	# read the api to provide correct arguments
	'name' => 'test campaign',
	'sender_name' => 'Vasya',
	'sender_email' => 'example@yandex.ru',
	'subject' => 'test email',
	'body' => Base64.encode64("<h2>test</h2> <p>my mail</p>"),
	'list_id' => @addr_book_id			
	})				

puts campaign['id'] # created campaign id on epochta server

You can also install it as a gem.

gem install e_pochta

FAQs

Package last updated on 04 Jul 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.