Table of Contents

Class: LiveJournalClient Twisted-0.17.4/sandbox/lj.py
Methods   
__init__
_cbCheckFriends
_cbEditEvent
_cbGetEvents
_cbGetFriends
_cbLogin
_cbPostEvent
_constructMenu
_deferRequest
checkFriends
editEvent
getEvents
getFriends
login
makeRequest
postEvent
requestDict
  __init__ 
__init__ (
        self,
        username,
        password,
        url='www.livejournal.com',
        port=80,
        )

  _cbCheckFriends 
_cbCheckFriends (
        self,
        resultsDict,
        deferred,
        )

  _cbEditEvent 
_cbEditEvent (
        self,
        resultsDict,
        deferred,
        )

  _cbGetEvents 
_cbGetEvents (
        self,
        resultsDict,
        deferred,
        )

  _cbGetFriends 
_cbGetFriends (
        self,
        resultsDict,
        deferred,
        )

  _cbLogin 
_cbLogin (
        self,
        resultsDict,
        deferred,
        )

  _cbPostEvent 
_cbPostEvent (
        self,
        resultsDict,
        deferred,
        )

  _constructMenu 
_constructMenu (
        self,
        resultsDict,
        menu=0,
        )

  _deferRequest 
_deferRequest (
        self,
        callback,
        requestDict,
        deferred,
        )

utility method for protocol methods

  checkFriends 
checkFriends (
        self,
        mask=None,
        deferred=None,
        )

  editEvent 
editEvent (
        self,
        itemID,
        event,
        subject=None,
        properties={},
        security=None,
        allowMask=None,
        eventTime=None,
        useJournal=None,
        lineEndings=None,
        deferred=None,
        )

  getEvents 
getEvents (
        self,
        selectType,
        itemID=None,
        howMany=None,
        beforeDate=None,
        year=None,
        month=None,
        day=None,
        lastSync=None,
        truncate=None,
        preferSubject=None,
        noProps=None,
        useJournal=None,
        lineEndings=None,
        deferred=None,
        )

  getFriends 
getFriends (
        self,
        friendLimit=None,
        includeFriendOf=0,
        includeGroups=0,
        deferred=None,
        )

  login 
login (
        self,
        getMenus=0,
        getPicKws=0,
        getPicKwURLs=0,
        getMoods=1,
        deferred=None,
        )

Login to the LiveJournal server.

Takes a optional deferred that will be called with a tuple consisting of this LiveJournalClient instance and the message returned by the server, if any.

getmenus := ask for the URL menus (default: no) getpickkws := ask for the picture keywords (default: no) getpickkwurls := ask for the picture keyword urls (default: no) getmoods := get the mood IDs (default: yes)

  makeRequest 
makeRequest (
        self,
        requestDict,
        deferred=None,
        )

  postEvent 
postEvent (
        self,
        event,
        subject=None,
        properties={},
        security=None,
        allowMask=None,
        eventTime=None,
        useJournal=None,
        lineEndings=None,
        deferred=None,
        )

  requestDict 
requestDict ( self,  mode )


Table of Contents

This document was automatically generated on Sat Apr 20 01:30:44 2002 by HappyDoc version 2.0