Learn R Programming

MTurkR (version 0.5.1)

AccountBalance: Retrieve MTurk account balance

Description

Retrieves the amount of money (in US Dollars) in your MTurk account. SufficientFunds provides a wrapper that checks whether your account has sufficient funds based upon specified characters of your HIT.

Usage

AccountBalance(verbose = getOption('MTurkR.verbose'), ...)

SufficientFunds(amount, assignments = NULL, hits = NULL, 
                bonus.ct = NULL, bonus.amount = NULL, masters = FALSE, 
                turkfee = 0.1, turkmin = 0.005, mastersfee = 0.2, ...)

Arguments

amount
Intended per-assignment payment amount.
assignments
Number of intended assignments (per HIT, if multiple HITs).
hits
Number of HITs.
bonus.ct
Number of intended bonuses.
bonus.amount
Amount of each bonus.
masters
A logical indicating whether MTurk Masters will be used. Default is FALSE.
turkfee
Amazon's fee as percentage of payments. Default is 10-percent (as 0.10).
turkmin
Amazon's minimum per-assignment fee. Default is $0.005.
mastersfee
Amazon's additional charge for use of MTurk Masters. Default is 20-percent (as 0.20).
verbose
Optionally print the results of the API request to the standard output. Default is taken from getOption('MturkR.verbose').
...
Additional arguments passed to request.

Value

  • Return value is an object of class MTurkResponse, including an additional character string (balance) containing the balance of the account in US Dollars.

Details

AccountBalance takes no substantive arguments. SufficientFunds is a wrapper for AccountBalance that accepts as inputs information about intended payments and bonuses to check whether your account has sufficient funds. If sandbox=TRUE, AccountBalance always returns $10,000.00. accountbalance() and getbalance() are aliases for AccountBalance.

References

http://docs.amazonwebservices.com/AWSMechTurk/latest/AWSMturkAPI/ApiReference_GetAccountBalanceOperation.html{API Reference}

Examples

Run this code
AccountBalance()
SufficientFunds(amount=".25", assignments="50", hits="5")
SufficientFunds(bonus.ct="150", bonus.amount=".75")

Run the code above in your browser using DataLab