Sha256: bd1ecffadc207d735c0720b218c0667f5394fbe237492c848262aec90a5e85c9
Contents?: true
Size: 831 Bytes
Versions: 7
Compression:
Stored size: 831 Bytes
Contents
describe ::PPC::API::Qihu::Account do auth = $qihu_auth # ::PPC::API::Qihu.debug_on it 'can get accnout info' do response = ::PPC::API::Qihu::Account::info( auth ) p response is_success( response ) expect( response[:result].keys ).to eq [:id, :name, :email, :company, :industry1, :industry2, :balance, :budget,:resources, :open_domains] end it 'can update exclude iplist' do response = ::PPC::API::Qihu::Account::update_exclude_ip( auth, ['127.0.0.1'] ) p response is_success( response ) end it 'can get exclude ip list' do response = ::PPC::API::Qihu::Account::get_exclude_ip( auth ) p response is_success( response ) end it 'can update budget' do response = ::PPC::API::Qihu::Account::update_budget( auth, 0 ) p response is_success( response ) end end
Version data entries
7 entries across 7 versions & 1 rubygems