Hey, sorry for the delayed response. While the cmdlets are depreciated, the functionality still exists - it was just that the way gShell was going about it that was bad. I guess I should probably update the docs further to point to what SHOULD be used, and also fix the markup so all the hashtags aren't showing.
So much to do...
Quickly testing it out, I believe you should be able to get any phone numbers through Get-GAUser. Just drill down in to the user object, and then the phones object:
(Get-GAUser someuser).UserObject.phones
Does that work?
For future reference, setting it is a little more convoluted (but keep in mind this is just wrapping the Google APIs to keep things as open and flexible as possible for you). You have to grab the UserObject in to a variable,
create a new user phone object, use that to update the phones object within the userobject, and then push that back to the server as the 'updated' object. It'd look something like this, if you wanted to wrap it in a function for shiggles:
function Set-GAUserPhone ([string]$UserName, [string]$PhoneNumber, [string]$Type, [bool]$IsPrimary) {
$U = (Get-GAUser $UserName).UserObject
$P = New-GAUserPhoneObj -value $PhoneNumber -type $Type -primary $IsPrimary
$U.Phones = $P
Set-Gauser -UserKey $UserName -UserBody $U
}
Regards,
Spencer