SaeTOAuthV2::__construct PHP Method

__construct() public method

construct WeiboOAuth object
public __construct ( $client_id, $client_secret, $access_token = NULL, $refresh_token = NULL )
    function __construct($client_id, $client_secret, $access_token = NULL, $refresh_token = NULL)
    {
        $this->client_id = $client_id;
        $this->client_secret = $client_secret;
        $this->access_token = $access_token;
        $this->refresh_token = $refresh_token;
    }

Usage Example

Example #1
0
 function __construct($akey, $skey, $access_token = NULL, $refresh_token = NULL)
 {
     parent::__construct($akey, $skey, $access_token, $refresh_token);
 }