package com.growthbeat.model;

import java.util.HashMap;
import java.util.Map;

import com.growthbeat.Context;

public class AccountUser extends Account {

	private String mail;

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public static AccountUser create(String accountId, String name, String mail, Context context) {
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("accountId", accountId);
		params.put("name", name);
		params.put("mail", mail);
		return post(context, "0/accounts", params, AccountUser.class);
	}

	public static AccountUser update(String accountId, String name, String mail, Context context) {
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("accountId", accountId);
		params.put("name", name);
		params.put("mail", mail);
		return put(context, "0/accounts", params, AccountUser.class);
	}

}

@@ -556,32 +556,37 @@
 text, %220/account
+_user
 s%22, params, Acco
@@ -768,46 +768,8 @@
 ();%0A
-%09%09params.put(%22accountId%22, accountId);%0A
 %09%09pa
@@ -846,20 +846,54 @@
 xt, 
-%220/accounts%22
+String.format(%220/account_users/%25s%22, accountId)
 , pa

Update AccountUsers API