class PPC::API::Sogou::Account

Constants

AccountType
Service

Public Class Methods

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