Overview

Namespaces

  • TwitterOAuth
    • Auth
    • Common
    • Exception
    • Serializer

Classes

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

Class AuthAbstract

Direct known subclasses

TwitterOAuth\Auth\ApplicationOnlyAuth, TwitterOAuth\Auth\SingleUserAuth
Abstract
Namespace: TwitterOAuth\Auth
Located at Auth/AuthAbstract.php
Methods summary
public
# __construct( array $credentials, TwitterOAuth\Serializer\SerializerInterface $serializer )

Authentication Base

Authentication Base

Parameters

$credentials
Credentials Array
$serializer
Output Serializer

Throws

TwitterOAuth\Exception\MissingCredentialsException
public null|string
# getConsumerKey( )

Gets the Twitter API key

Gets the Twitter API key

Returns

null|string
public null|string
# getConsumerSecret( )

Gets the Twitter API secret

Gets the Twitter API secret

Returns

null|string
public null|TwitterOAuth\Serializer\SerializerInterface
# getSerializer( )

Gets Serializer

Gets Serializer

Returns

null|TwitterOAuth\Serializer\SerializerInterface
public array|string|false
# getHeaders( null $key = null )

Get response headers

Get response headers

Parameters

$key

Returns

array|string|false
public mixed
# get( string $call, array $getParams = null )

Send a GET call to Twitter API via OAuth

Send a GET call to Twitter API via OAuth

Parameters

$call
Twitter resource string
$getParams
GET parameters to send

Returns

mixed
Output with selected format

Throws

TwitterOAuth\Exception\TwitterException
Constants summary
string EOL
# "\r\n"
TwitterOAuth (for v1.1 API) API documentation generated by ApiGen