$child = \EasyPost\User::retrieve($me->children[0]->id); $child_keys = $child->api_keys(); print_r($child); } if (EDIT_ME) { $me = \EasyPost\User::retrieve_me(); $me->name = "My New Name"; $me->email = "*****@*****.**"; $me->recharge_threshold = 5000; try { $me->save(); } catch (Exception $e) { $e->prettyPrint(); } print_r($me); } if (EDIT_CHILD) { $me = \EasyPost\User::retrieve_me(); $child = \EasyPost\User::retrieve($me->children[0]->id); $child_keys = $child->api_keys(); // retrieve the child with its own api key $child = \EasyPost\User::retrieve_me($child_keys["production"]); $child->name = "Child New Name"; $child->email = "*****@*****.**"; try { $child->save(); } catch (Exception $e) { $e->prettyPrint(); } print_r($child); }