Created
December 6, 2012 19:51
-
-
Save lupos/4227727 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// PUT https://api.balancedpayments.com/v1/marketplaces/:marketplace_id/accounts/:account_id | |
/// curl https://api.balancedpayments.com/v1/marketplaces/TEST-MP365nSS4SNSrrlMeJXI7LUC/accounts \ | |
/// -u 657c523c3b8e11e2a893026ba7cd33d0: \ | |
/// </summary> | |
/// <param name="bankAccountUri">-d "bank_account_uri=/v1/bank_accounts/BA3HRAcWctcPl1Yy18lOXHUb"</param> | |
/// <returns></returns> | |
public Account AddBankToAccount(string bankAccountUri, string account_id) | |
{ | |
Require.Argument("bank_account_uri", bankAccountUri); | |
var request = new RestRequest(Method.PUT) { Resource = "v1/marketplaces/" + _marketPlace + "/accounts/" + account_id}; | |
request.AddParameter("bank_account_uri", bankAccountUri, ParameterType.GetOrPost); | |
return Execute<Account>(request); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment