Important: The Google+ API for Hangouts is no longer supported. Learn more

gapi.hangout.billing

Note: The Telephone API requires that you add a scope to the Google Developers Console project as described in OAuth Requirements.

Classes

Functions

Events

Classes in gapi.hangout.billing

Class Description
class Money(
  amount,
  currency,
  forDisplay
)
Represents a quantity of money.
amount : undefined
The amount of money. In millionths of a unit (currency determines the unit).
currency : undefined
The currency of the money. Follows ISO 4217 ('EUR', 'USD', etc.)
forDisplay : undefined
A displayble string in the user’s chosen currency.
class TelephoneBalanceResponseEvent(
  balance,
  successful
)
An event fired when the server responds to a telephone balance lookup.
balance : undefined
The amount in the user's voice account. Null if the lookup is not successful.
successful : undefined
Whether the lookup was successful. Will be false if the user doesn't have a Google Voice account.

Functions in gapi.hangout.billing

Function Returns Description & Parameter
requestTelephoneBalance() undefined Looks up the user's current Google Voice balance. When a response has been received from the server a #TelephoneBalanceResponseEvent will be fired.

Event Functions in gapi.hangout.billing

Event Function Description
gapi.hangout.billing.onTelephoneBalanceResponse
onTelephoneBalanceResponse.add(
  callback
)
Adds a callback to be called whenever a PSTN balance response is received from the server.
callback : function(TelephoneBalanceResponseEvent)
The callback to add.
onTelephoneBalanceResponse.remove(
  callback
)
Removes a callback previously added by gapi.hangout.billing.onTelephoneBalanceResponse.add.
callback : function(TelephoneBalanceResponseEvent)
The callback to remove.

Send feedback about...

Google+ Hangouts API
Google+ Hangouts API