<?php
include './wepay_api.inc';
$W = new WePay($access_token, $token_secret);
$groups = $W->get('/group/list');
$id = $groups[0]->id;
$data = array('name'=>'Rent', 'description'=>'8 is old enough to pay rent');
$result = $W->put("/group/modify/$id", $data);
print_r($result);
$result = $W->get("/group/$id");
print_r($result);