Class: IletiMerkezi::Account

Inherits:
Object
  • Object
show all
Extended by:
XmlBuilder
Defined in:
lib/ileti_merkezi/actions/account.rb

Overview

Account

Constant Summary collapse

PATH =
'http://dev.iletimerkezi.com/index.php?function=api&'\
'&special_username=Ns_eemsm&special_password=_Arg_ns_mmm'

Constants included from XmlBuilder

XmlBuilder::XML_TAG

Class Method Summary collapse

Methods included from XmlBuilder

hash_to_xml

Class Method Details

.infoObject



13
14
15
16
17
18
# File 'lib/ileti_merkezi/actions/account.rb', line 13

def info
  request(
    '&obj1=getUserInfo',
    hash_to_xml(userInfo: )
  )
end

.sendersObject



20
21
22
23
24
25
# File 'lib/ileti_merkezi/actions/account.rb', line 20

def senders
  request(
    '&obj1=getSmsHeader',
    hash_to_xml(smsApi: { userInfo: .merge(smsType: 2) })
  )
end