PHP Класс GoogleVoice, Google-Voice-PHP-API

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( $login, $pass )
addNote ( $message_id, $note ) Add a note to a message in a Google Voice Inbox or Voicemail.
callNumber ( $number, $from_number, $phone_type = 'mobile' ) Place a call to $number connecting first to $fromNumber.
cancelCall ( $number, $from_number, $phone_type = 'mobile' ) Cancel a call to $number connecting first to $fromNumber.
deleteMessage ( $message_id ) Delete a message or conversation.
dom_dump ( $obj )
getNewSMS ( )
getReadSMS ( ) Get all of the read SMS messages in a Google Voice inbox.
getReadVoicemail ( ) Get all of the unread SMS messages from a Google Voice Voicemail.
getUnreadSMS ( ) Get all of the unread SMS messages in a Google Voice inbox.
getUnreadVoicemail ( ) Get all of the unread SMS messages from a Google Voice Voicemail.
getVoicemailMP3 ( $message_id ) Get MP3 of a Google Voice Voicemail.
markMessageRead ( $message_id ) Mark a message in a Google Voice Inbox or Voicemail as read.
markMessageUnread ( $message_id ) Mark a message in a Google Voice Inbox or Voicemail as unread.
markSMSDeleted ( $msgID )
markSMSRead ( $msgID )
removeNote ( $message_id, $note ) Removes a note from a message in a Google Voice Inbox or Voicemail.
sendSMS ( $number, $message ) Send an SMS to $number containing $message.

Приватные методы

Метод Описание
_logIn ( )
dom_get_input_tags ( $html ) Source from http://www.binarytides.com/php-get-name-and-value-of-all-input-tags-on-a-page-with-domdocument/ Generic function to fetch all input tags (name and value) on a page Useful when writing automatic login bots/scrapers

Описание методов

__construct() публичный Метод

public __construct ( $login, $pass )

addNote() публичный Метод

Add a note to a message in a Google Voice Inbox or Voicemail.
public addNote ( $message_id, $note )
$message_id The id of the message to update.
$note The message to send within the SMS.

callNumber() публичный Метод

Place a call to $number connecting first to $fromNumber.
public callNumber ( $number, $from_number, $phone_type = 'mobile' )
$number The 10-digit phone number to call (formatted with parens and hyphens or none).

cancelCall() публичный Метод

Cancel a call to $number connecting first to $fromNumber.
public cancelCall ( $number, $from_number, $phone_type = 'mobile' )
$number The 10-digit phone number to call (formatted with parens and hyphens or none).

deleteMessage() публичный Метод

Delete a message or conversation.
public deleteMessage ( $message_id )
$message_id The ID of the conversation to delete.

dom_dump() публичный Метод

public dom_dump ( $obj )

getNewSMS() публичный Метод

public getNewSMS ( )

getReadSMS() публичный Метод

Get all of the read SMS messages in a Google Voice inbox.
public getReadSMS ( )

getReadVoicemail() публичный Метод

Get all of the unread SMS messages from a Google Voice Voicemail.
public getReadVoicemail ( )

getUnreadSMS() публичный Метод

Get all of the unread SMS messages in a Google Voice inbox.
public getUnreadSMS ( )

getUnreadVoicemail() публичный Метод

Get all of the unread SMS messages from a Google Voice Voicemail.
public getUnreadVoicemail ( )

getVoicemailMP3() публичный Метод

Get MP3 of a Google Voice Voicemail.
public getVoicemailMP3 ( $message_id )

markMessageRead() публичный Метод

Mark a message in a Google Voice Inbox or Voicemail as read.
public markMessageRead ( $message_id )
$message_id The id of the message to update.

markMessageUnread() публичный Метод

Mark a message in a Google Voice Inbox or Voicemail as unread.
public markMessageUnread ( $message_id )
$message_id The id of the message to update.

markSMSDeleted() публичный Метод

public markSMSDeleted ( $msgID )

markSMSRead() публичный Метод

public markSMSRead ( $msgID )

removeNote() публичный Метод

Removes a note from a message in a Google Voice Inbox or Voicemail.
public removeNote ( $message_id, $note )
$message_id The id of the message to update.

sendSMS() публичный Метод

Send an SMS to $number containing $message.
public sendSMS ( $number, $message )
$number The 10-digit phone number to send the message to (formatted with parens and hyphens or none).
$message The message to send within the SMS.