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

Class: Services_Twitter

Source Location: /Services_Twitter-0.2.0/Services/Twitter.php

Class Overview

Services_Twitter_Common
   |
   --Services_Twitter

Services_Twitter


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 75]
Services_Twitter

  1.  <?php
  2.  require_once 'Services/Twitter.php';
  3.  
  4.  $username 'You_Username';
  5.  $password 'Your_Password';
  6.  
  7.  try {
  8.      $twitter = new Services_Twitter($username$password);
  9.      $msg $twitter->statuses->update("I'm coding with PEAR right now!");
  10.      print_r($msg)// Should be a SimpleXMLElement structure
  11.  catch (Services_Twitter_Exception $e{
  12.      echo $e->getMessage();
  13.  }
  14.  ?>



[ Top ]


Class Variables

$instances = array()

[line 138]

Instances of Twitter methods

Type:   array


[ Top ]

$methods = array(
        'account'         => 'Account',
        'direct_messages' => 'DirectMessages',
        'favorites'       => 'Favorites',
        'friendships'     => 'Friendships',
        'notifications'   => 'Notifications',
        'statuses'        => 'Statuses',
        'users'           => 'Users',
        'search'          => 'Search'
    )

[line 121]

Supported areas / methods of Twitter's API

Type:   array


[ Top ]

$uri =  'http://twitter.com'

[line 113]

Public URI of Twitter's API

Type:   string


[ Top ]



Method Detail

factory   [line 167]

object Instance factory( string $method)

Instantiate API driver
  • Return: of API driver
  • Access: protected

Parameters:

string   $method   —  API driver to load

[ Top ]

__get   [line 149]

object Instance __get( string $var)

Lazily load Twitter API drivers

Parameters:

string   $var   —  Method to load

[ Top ]


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