Overview

Packages

  • admin
  • classes
    • media
  • CodeIgniter
    • Libraries
  • core
  • functions
  • JSMin
  • None
  • OpenID
  • PHP
  • PHPMailer
  • plugins
    • admin
    • development
    • feed
    • mail
    • media
    • misc
    • seo
    • spam
    • uploader
    • users
    • zenpage
    • zenphoto
      • news
  • Services
    • JSON

Classes

  • AMFReader
  • AMFStream
  • Auth_OpenID_PAPE_Request
  • Auth_OpenID_PAPE_Response
  • Auth_OpenID_ServiceEndpoint
  • Auth_Yadis_ProxyResolver
  • AVCSequenceParameterSetReader
  • exampleMacros
  • favorites
  • fieldExtender
  • getID3
  • getid3_aac
  • getid3_apetag
  • getid3_flv
  • getid3_handler
  • getid3_id3v1
  • getid3_id3v2
  • getid3_lib
  • getid3_lyrics3
  • getid3_mp3
  • getid3_mpeg
  • getid3_quicktime
  • getid3_swf
  • HTML
  • internal_deprecations
  • Mobile_Detect
  • OAuthConsumer
  • OAuthDataStore
  • OAuthRequest
  • OAuthServer
  • OAuthSignatureMethod
  • OAuthSignatureMethod_HMAC_SHA1
  • OAuthSignatureMethod_PLAINTEXT
  • OAuthSignatureMethod_RSA_SHA1
  • OAuthToken
  • OAuthUtil
  • PclZip
  • PlainText
  • ReCaptchaResponse
  • rewriteRules
  • RSS_internal_deprecations
  • Services_JSON_Error
  • TextObject_internal_deprecations
  • tinyURL
  • TwitterOAuth
  • UploadHandler
  • userAddressFields
  • Video_internal_deprecations
  • Zenpage_internal_deprecations
  • ZipStream
  • zpLegacySpam

Exceptions

  • getid3_exception
  • JSMin_UnterminatedCommentException
  • JSMin_UnterminatedRegExpException
  • JSMin_UnterminatedStringException
  • OAuthExcept

Functions

  • _recaptcha_aes_encrypt
  • _recaptcha_aes_pad
  • _recaptcha_http_post
  • _recaptcha_mailhide_email_parts
  • _recaptcha_mailhide_urlbase64
  • _recaptcha_qsencode
  • addalbumsToDatabase
  • addCategoriesToDatabase
  • addItem
  • addPagesToDatabase
  • addPluginScript
  • addPluginType
  • addSubalbumMenus
  • Auth_OpenID_arrangeByType
  • Auth_OpenID_bestMatchingService
  • Auth_OpenID_discover
  • Auth_OpenID_discoverURI
  • Auth_OpenID_discoverWithoutYadis
  • Auth_OpenID_discoverWithYadis
  • Auth_OpenID_discoverXRI
  • Auth_OpenID_findOPLocalIdentifier
  • Auth_OpenID_getOpenIDConsumerTypeURIs
  • Auth_OpenID_getOpenIDTypeName
  • Auth_OpenID_getOpenIDTypeURIs
  • Auth_OpenID_getOPOrUserServices
  • Auth_OpenID_makeOpenIDEndpoints
  • Auth_Yadis_getIPrivateChars
  • Auth_Yadis_pct_escape_unicode
  • Auth_Yadis_startswith
  • checkForPassword
  • checkNewsAccess
  • checkNewsCategoryPassword
  • checkPagePassword
  • comment_form_addComment
  • comment_form_handle_comment
  • comment_form_PaginationJS
  • comment_form_postcomment
  • comment_form_print10Most
  • comment_form_visualEditor
  • commentFormUseCaptcha
  • commentReply
  • countArticles
  • countCombiNews
  • db_affected_rows
  • db_close
  • db_collation
  • db_connect
  • db_create
  • db_create_table
  • db_error
  • db_fetch_assoc
  • db_fetch_row
  • db_free_result
  • db_getSQLmode
  • db_insert_id
  • db_LIKE_escape
  • db_list_fields
  • db_num_rows
  • db_permissions
  • db_quote
  • db_setSQLmode
  • db_show
  • db_software
  • db_table_update
  • db_truncate_table
  • deleteItem
  • detect_fetcher
  • detect_math
  • detect_query_corruption
  • detect_random
  • detect_stores
  • detect_xml
  • displayError
  • doIncludes
  • escape
  • filter_MatchesAnyOpenIDConsumerType
  • filter_MatchesAnyOpenIDType
  • formatList
  • generateCaptcha
  • getAlbumId
  • getAlbumLinkURL
  • getAlbumPlace
  • getAllArticleDates
  • getAllCategories
  • getAllSubalbums
  • getArticles
  • getBareNewsAlbumTitle
  • getCategory
  • getCategoryID
  • getCategoryLink
  • getCategoryParentID
  • getCategorySortOrder
  • getCategoryTitle
  • getCombiNews
  • getCommentAddress
  • getCommentAuthorEmail
  • getCommentAuthorLink
  • getCommentAuthorName
  • getCommentAuthorSite
  • getCommentBody
  • getCommentCount
  • getCommentDate
  • getCommentDateTime
  • getCommentErrors
  • getCommentsAllowed
  • getCommentStored
  • getCommentTime
  • getConsumer
  • getCurrentNewsCategory
  • getCurrentNewsCategoryID
  • getCurrentNewsCategoryParentID
  • getCurrentNewsPage
  • getDownloadLink
  • getFirstImageURL
  • getFullNewsImage
  • getImageEXIFData
  • getImageID
  • getImageLinkURL
  • getImageProcessorURIFromCacheName
  • getImageSortOrder
  • getLastImageURL
  • getLatestComments
  • getLink
  • getMenuSetSelector
  • getMimeString
  • getNewsAlbumName
  • getNewsAlbumTitle
  • getNewsAlbumURL
  • getNewsCategoryPath
  • getNewsContentShorten
  • getNewsImageTags
  • getNewsLink
  • getNewsTitleLink
  • getNewsTitlePath
  • getNewsType
  • getNewsVideoContent
  • getNumSubalbums
  • getOpenIDURL
  • getPageLinkPath
  • getPageLinkURL
  • getPages
  • getParentItems
  • getParentNewsCategories
  • getParentPages
  • getPHPFiles
  • getReturnTo
  • getRSSHeaderLink
  • getScheme
  • getStore
  • getSubCategories
  • getTheme
  • getTitle
  • getTotalArticles
  • getTrustRoot
  • getURL
  • getZenpageHitcounter
  • getZenpageRSSHeaderLink
  • getZenpageRSSLink
  • hitcounter
  • imageBlurGD
  • inNewsCategory
  • inProtectedNewsCategory
  • inSubNewsCategoryOf
  • is_GalleryNewsType
  • is_NewsType
  • is_valid_image
  • is_valid_other_type
  • isMyAlbum
  • isMyNews
  • isMyPage
  • isProtectedAlbum
  • isProtectedNewsCategory
  • isProtectedPage
  • isSubNewsCategoryOf
  • jQueryUpload_head
  • jQueryUpload_headers
  • kses
  • kses_array_lc
  • kses_attr
  • kses_bad_protocol
  • kses_bad_protocol_once
  • kses_bad_protocol_once2
  • kses_check_attr_val
  • kses_decode_entities
  • kses_hair
  • kses_hook
  • kses_html_error
  • kses_js_entities
  • kses_no_null
  • kses_normalize_entities
  • kses_normalize_entities2
  • kses_split
  • kses_split2
  • kses_stripslashes
  • kses_version
  • listDBUses
  • listUses
  • my_truncate_string
  • next_comment
  • normalizeColumns
  • openedForComments
  • PclZipUtilCopyBlock
  • PclZipUtilOptionText
  • PclZipUtilPathInclusion
  • PclZipUtilPathReduction
  • PclZipUtilRename
  • PclZipUtilTranslateWinPath
  • printAdminToolbox
  • printAlbumLink
  • printAlbumMap
  • printAlbumPlace
  • printAlbumRating
  • printAlbumsSelector
  • printAlbumZip
  • printCaptcha
  • printCommentAuthorLink
  • printCommentErrors
  • printCustomPageSelector
  • printCustomSizedImageMaxHeight
  • printDownloadLink
  • printDownloadLinkAlbumZip
  • printEditable
  • printEditCommentLink
  • printFavoritesLink
  • printField
  • printImageDiv
  • printImageEXIFData
  • printImageID
  • printImageLink
  • printImageMap
  • printImageRating
  • printImageSortOrder
  • printItemEditLink
  • printItemsList
  • printItemsListTable
  • printItemStatusDropdown
  • printjCarouselThumbNav
  • printLatestComments
  • printLatestZenpageComments
  • printLink
  • printNewsImageTags
  • printNewsLink
  • printNewsReadMoreLink
  • printNewsTitleLink
  • printNextPageLink
  • printPageLinkURL
  • printParentPagesBreadcrumb
  • printPreloadScript
  • printPrevPageLink
  • printSizedImageLink
  • printSlideShow
  • printSlideShowJS
  • printSlideShowLink
  • printThumbNav
  • printZenpageNewsCategorySelector
  • printZenpagePagesSelector
  • printZenpageRSSHeaderLink
  • printZenpageRSSLink
  • processExpired
  • processMenuBulkActions
  • publishItem
  • query
  • query_full_array
  • query_single_row
  • recaptcha_check_answer
  • recaptcha_get_html
  • recaptcha_get_signup_url
  • recaptcha_mailhide_html
  • recaptcha_mailhide_url
  • recordMissing
  • resetCurrentAlbum
  • rewrite_path_zenpage
  • rulesList
  • run
  • setAlbumCustomData
  • setImageCustomData
  • setPluginDomain
  • setThemeDomain
  • setupAllowedMaps
  • storeConfig
  • unpublishedZenphotoItemCheck
  • unpublishSubalbums
  • updateCacheName
  • updateConfigItem
  • updateItemsSortorder
  • updateMenuItem
  • upload_extra
  • upload_form
  • upload_head
  • zenJavascript
  • zenpageHitcounter
  • zenpageOpenedForComments
  • zp_colorAllocate
  • zp_copyCanvas
  • zp_createImage
  • zp_drawRectangle
  • zp_getFonts
  • zp_graphicsLibInfo
  • zp_imageCanRotate
  • zp_imageColorTransparent
  • zp_imageDims
  • zp_imageFill
  • zp_imageFontHeight
  • zp_imageFontWidth
  • zp_imageFromString
  • zp_imageGet
  • zp_imageGray
  • zp_imageHeight
  • zp_imageIPTC
  • zp_imageKill
  • zp_imageLoadFont
  • zp_imageMerge
  • zp_imageOutput
  • zp_imageResizeAlpha
  • zp_imageUnsharpMask
  • zp_imageWidth
  • zp_resampleImage
  • zp_rotateImage
  • zp_writeString
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class TwitterOAuth

Twitter OAuth class

Located at zp-extensions/tweet_news/twitteroauth.php
Methods summary
public
# accessTokenURL( )

Set API URLS

Set API URLS

public
# authenticateURL( )
public
# authorizeURL( )
public
# requestTokenURL( )
public
# lastStatusCode( )

Debug helpers

Debug helpers

public
# lastAPICall( )
public
# __construct( $consumer_key, $consumer_secret, $oauth_token = NULL, $oauth_token_secret = NULL )

construct TwitterOAuth object

construct TwitterOAuth object

public
# getRequestToken( $oauth_callback )

Get a request_token from Twitter

Get a request_token from Twitter

Returns

a key/value array containing oauth_token and oauth_token_secret
public
# getAuthorizeURL( $token, $sign_in_with_twitter = TRUE )

Get the authorize URL

Get the authorize URL

Returns

a string
public
# getAccessToken( $oauth_verifier )

Exchange request token and secret for an access token and secret, to sign API calls.

Exchange request token and secret for an access token and secret, to sign API calls.

Returns

array("oauth_token" => "the-access-token", "oauth_token_secret" => "the-access-secret", "user_id" => "9436992", "screen_name" => "abraham")


public
# getXAuthToken( $username, $password )

One time exchange of username and password for access token and secret.

One time exchange of username and password for access token and secret.

Returns

array("oauth_token" => "the-access-token", "oauth_token_secret" => "the-access-secret", "user_id" => "9436992", "screen_name" => "abraham", "x_auth_expires" => "0")


public
# get( $url, $parameters = array() )

GET wrapper for oAuthRequest.

GET wrapper for oAuthRequest.

public
# post( $url, $parameters = array() )

POST wrapper for oAuthRequest.

POST wrapper for oAuthRequest.

public
# delete( $url, $parameters = array() )

DELETE wrapper for oAuthReqeust.

DELETE wrapper for oAuthReqeust.

public
# oAuthRequest( $url, $method, $parameters )

Format and sign an OAuth / API request

Format and sign an OAuth / API request

public API
# http( $url, $method, $postfields = NULL )

Make an HTTP request

Make an HTTP request

Returns

API
results
public
# getHeader( $ch, $header )

Get the header info to store.

Get the header info to store.

Properties summary
public $http_code
#
public $url
#
public string $host
# "https://api.twitter.com/1.1/"
public integer $timeout
# 30
public integer $connecttimeout
# 30
public boolean $ssl_verifypeer
# FALSE
public string $format
# 'json'
public boolean $decode_json
# TRUE
public $http_info
#
public string $useragent
# 'TwitterOAuth v0.2.0-beta2'
Zenphoto doc API documentation generated by ApiGen