class PPC::API::Sm::Account

Constants

AccountType
Service

Public Class Methods

info( auth ) click to toggle source
# File lib/ppc/api/sm/account.rb, line 25
def self.info( auth )
  response = request(auth, Service, 'getAccount', {requestData: ["account_all"]})
  process( response, 'accountInfoType' ){ |x|reverse_type(x)[0] }
end
update(auth, param = {} ) click to toggle source
# File lib/ppc/api/sm/account.rb, line 30
def self.update(auth, param = {} )
  """
  update account info
  @ params : account_info_type
  @return : account info_type
  """
  # for account service, there is not bulk operation
  body = { accountInfoType: make_type( param )[0] }
  response = request(auth, Service, 'updateAccount', body)
  process( response, 'accountInfoType' ){ |x|reverse_type(x)[0] }
end