amper5and/node-google-voice — pull request #6 by chadsmith (2012-02-01 06:53:36+00:00)
Title: Added function to toggle phones

Turn on forwarding to phone 2:

`client.togglePhone(2, true);`

Turn off forwarding to phone 3:

`client.togglePhone(3, false);`

Turn on forwarding to phone 3 and use callback:

client.togglePhone(3, true, function(error, response, body) {
var data = JSON.parse(body);
if(error || !data.ok)
console.log('Error: ', error, ', response: ', body);
else
console.log('Forwarding toggled successfully.');
});