phpBB API Documentation
Class

phpbb\auth\provider\oauth\service\twitter

class twitter extends base

Twitter OAuth service

Methods

get_external_service_provider()

Returns the external library service provider once it has been set

from base
get_auth_scope()

Returns an array of the scopes necessary for auth

from base
set_external_service_provider(ServiceInterface $service_provider)

Sets the external library service provider

from base
__construct(config $config, request_interface $request)

Constructor

get_service_credentials()

Returns an array containing the service credentials belonging to requested service.

perform_auth_login()

Returns the results of the authentication in json format

perform_token_auth()

Returns the results of the authentication in json format Use this function when the user already has an access token

Details

in base at line 31
public get_external_service_provider()

Returns the external library service provider once it has been set

in base at line 39
public get_auth_scope()

Returns an array of the scopes necessary for auth

in base at line 47
public set_external_service_provider(ServiceInterface $service_provider)

Sets the external library service provider

Parameters

ServiceInterface $service_provider

at line 41
public __construct(config $config, request_interface $request)

Constructor

Parameters

config $config
request_interface $request

at line 50
public get_service_credentials()

Returns an array containing the service credentials belonging to requested service.

at line 61
public perform_auth_login()

Returns the results of the authentication in json format

at line 89
public perform_token_auth()

Returns the results of the authentication in json format Use this function when the user already has an access token