Overview

Namespaces

  • TwitterOAuth
    • Auth
    • Common
    • Exception
    • Serializer

Classes

  • ApplicationOnlyAuth
  • AuthAbstract
  • SingleUserAuth
  • Overview
  • Namespace
  • Class
  • Tree

Class SingleUserAuth

TwitterOAuth\Auth\AuthAbstract
Extended by TwitterOAuth\Auth\SingleUserAuth
Namespace: TwitterOAuth\Auth
Located at Auth/SingleUserAuth.php
Methods summary
public string
# getAccessToken( )

Gets the Twitter Access token

Gets the Twitter Access token

Returns

string
public null|string
# getAccessTokenSecret( )

Gets the Twitter Access token secret

Gets the Twitter Access token secret

Returns

null|string
public mixed
# post( string $call, array $postParams = null, array $getParams = null )

Send a POST call to Twitter API via OAuth

Send a POST call to Twitter API via OAuth

Parameters

$call
Twitter resource string
$postParams
POST parameters to send
$getParams
GET parameters to send

Returns

mixed
Output with selected format

Throws

TwitterOAuth\Exception\TwitterException
public mixed
# postMedia( string $call, string $filename )

Send a POST call with media upload to Twitter API via OAuth

Send a POST call with media upload to Twitter API via OAuth

Parameters

$call
Twitter resource string
$filename
File location to upload

Returns

mixed
Output with selected format

Throws

TwitterOAuth\Exception\CurlException
TwitterOAuth\Exception\TwitterException
Methods inherited from TwitterOAuth\Auth\AuthAbstract
__construct(), get(), getConsumerKey(), getConsumerSecret(), getHeaders(), getSerializer()
Constants inherited from TwitterOAuth\Auth\AuthAbstract
EOL
TwitterOAuth (for v1.1 API) API documentation generated by ApiGen