mediawiki/oauthclient-php
PHP OAuth client to use with Wikipedia and other MediaWiki-based wikis running the OAuth extension.
Loading...
Searching...
No Matches
MediaWiki\OAuthClient\Token Class Reference

Data type that represents an End User via either and access or requst token. More...

Public Member Functions

 __construct ( $key, $secret)
 
 toString ()
 Generate the basic string serialization of a token that a server would respond to request_token and access_token calls with.
 
 __toString ()
 

Public Attributes

 $key
 
 $secret
 

Detailed Description

Data type that represents an End User via either and access or requst token.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\OAuthClient\Token::__construct (   $key,
  $secret 
)
Parameters
string$keyThe token
string$secretThe token secret

Member Function Documentation

◆ toString()

MediaWiki\OAuthClient\Token::toString ( )

Generate the basic string serialization of a token that a server would respond to request_token and access_token calls with.

Returns
string

The documentation for this class was generated from the following file: