Services_Twitter
[ class tree: Services_Twitter ] [ index: Services_Twitter ] [ all elements ]

Class: Services_Twitter_DirectMessages

Source Location: /Services_Twitter-0.2.1/Services/Twitter/DirectMessages.php

Class Overview

Services_Twitter_Common
   |
   --Services_Twitter_DirectMessages

Services_Twitter_DirectMessages


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 55]
Services_Twitter_DirectMessages


[ Top ]


Class Variables

$name =  'direct_messages'

[line 63]

Group name

Type:   string
Overrides:   Array


[ Top ]



Method Detail

destroy   [line 74]

object Instance destroy( integer $id)

Delete/Destroy a direct message

Parameters:

integer   $id   —  The direct message id to delete

[ Top ]

dmNew   [line 131]

object Instance dmNew( string $user, string $text)

Send a direct message

Parameters:

string   $user   —  The id or username to send to
string   $text   —  The direct text to send

[ Top ]

__call   [line 104]

object Instance __call( string $function, [array $args = array()])

__call

Evidently, PHP considers 'new' a reserved keyword. I really, really wanted to keep the interface the same across the board and Twitter uses /direct_messages/new so Services_Twitter should use $foo->direct_messages->new(), which was causing parse errors. This is an ugly hack to work around this issue.


Overrides Services_Twitter_Common::__call() (Overloaded call for API passthrough)

Parameters:

string   $function   —  The API endpoint to call
array   $args   —  The arguments for the API endpoint

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:31:23 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.