PHP 클래스 GoogleVoice, Google-Voice-PHP-API

파일 보기 프로젝트 열기: aaronpk/Google-Voice-PHP-API 1 사용 예제들

공개 메소드들

메소드 설명
__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.