class PPC::API::Baidu::Account

Constants

AccountInfoType
Service

Public Class Methods

info( auth ) click to toggle source
# File lib/ppc/api/baidu/account.rb, line 32
def self.info( auth )
  body = {:accountFields => AccountInfoType.values}
  response = request(auth,Service,'getAccountInfo',body)
  process( response, 'accountInfoType' ){ |x|reverse_type(x)[0] }
end
update(auth, param = {} ) click to toggle source
# File lib/ppc/api/baidu/account.rb, line 38
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 = { accountInfo: make_type( param )[0] }
  response = request(auth,Service,'updateAccountInfo', body)
  process( response, 'accountInfoType' ){ |x|reverse_type(x)[0] }
end