略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: OAuth::setToken

2024-05-03

OAuth::setToken

(PECL OAuth >= 0.99.1)

OAuth::setToken设置令牌和 secret

说明

public OAuth::setToken(string $token, string $token_secret): bool

为后续请求设置令牌和 secret。

参数

token

OAuth 令牌

token_secret

OAuth 令牌 secret。

返回值

true

范例

示例 #1 OAuth::setToken() 例子

<?php
$oauth 
= new OAuth(OAUTH_CONSUMER_KEY,OAUTH_CONSUMER_SECRET);
$oauth->setToken("token","token-secret");
?>
add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/oauth.settoken.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3