草庐IT

Acs-Token

全部标签

php - 如何在 Box-API 中使用应用程序用户 ID 创建访问 token ?

我正在尝试使用Box应用程序用户ID创建访问token。我已经使用以下代码创建盒子应用程序用户curlhttps://api.box.com/2.0/users\-H"Authorization:Bearer"\-d'{"name":"NedStark","is_platform_access_only":true}'\-XPOST然后给出如下结果{"type":"user","id":"2199107004","name":"NedStark","login":"AppUser_399382_9BNZHI03nJ@boxdevedition.com","created_at":"20

php - 如何在 Box-API 中使用应用程序用户 ID 创建访问 token ?

我正在尝试使用Box应用程序用户ID创建访问token。我已经使用以下代码创建盒子应用程序用户curlhttps://api.box.com/2.0/users\-H"Authorization:Bearer"\-d'{"name":"NedStark","is_platform_access_only":true}'\-XPOST然后给出如下结果{"type":"user","id":"2199107004","name":"NedStark","login":"AppUser_399382_9BNZHI03nJ@boxdevedition.com","created_at":"20

php - 必须使用事件访问 token 来查询有关当前用户的信息

在使用简单代码时,我一直在标题中收到错误:require_once('sdk/src/facebook.php');require_once("AppInfo.php");functionidx(array$array,$key,$default=null){returnarray_key_exists($key,$array)?$array[$key]:$default;}functionhe($str){returnhtmlentities($str,ENT_QUOTES,"UTF-8");}$facebook=newFacebook(array('appId'=>AppInfo:

php - 必须使用事件访问 token 来查询有关当前用户的信息

在使用简单代码时,我一直在标题中收到错误:require_once('sdk/src/facebook.php');require_once("AppInfo.php");functionidx(array$array,$key,$default=null){returnarray_key_exists($key,$array)?$array[$key]:$default;}functionhe($str){returnhtmlentities($str,ENT_QUOTES,"UTF-8");}$facebook=newFacebook(array('appId'=>AppInfo:

php - 谷歌 API 客户端 "refresh token must be passed in or set as part of setAccessToken"

我目前面临一个非常奇怪的问题,实际上我一直在遵循来自GoogleAPI文档的指南(https://developers.google.com/google-apps/calendar/quickstart/php)。我尝试了两次,第一次它工作得很好,但在访问token过期后,GoogleAPIDoc直接提供的脚本无法刷新它。长话短说这是错误信息:sam@ssh:~$phpwww/path/to/app/public/quickstart.phpFatalerror:Uncaughtexception'LogicException'withmessage'refreshtokenmust

php - 谷歌 API 客户端 "refresh token must be passed in or set as part of setAccessToken"

我目前面临一个非常奇怪的问题,实际上我一直在遵循来自GoogleAPI文档的指南(https://developers.google.com/google-apps/calendar/quickstart/php)。我尝试了两次,第一次它工作得很好,但在访问token过期后,GoogleAPIDoc直接提供的脚本无法刷新它。长话短说这是错误信息:sam@ssh:~$phpwww/path/to/app/public/quickstart.phpFatalerror:Uncaughtexception'LogicException'withmessage'refreshtokenmust

php - 为什么我的推特 oauth 访问 token 无效/过期

我正在使用Twitter将用户登录到一个网站,在我尝试获取有效的访问token之前,该网站似乎正在运行。require("twitteroauth.php");require'twconfig.php';session_start();$twitteroauth=newTwitterOAuth(YOUR_CONSUMER_KEY,YOUR_CONSUMER_SECRET);$request_token=$twitteroauth->getRequestToken('http://****/tw_response.php');$oauth_token=$request_token['oa

php - 为什么我的推特 oauth 访问 token 无效/过期

我正在使用Twitter将用户登录到一个网站,在我尝试获取有效的访问token之前,该网站似乎正在运行。require("twitteroauth.php");require'twconfig.php';session_start();$twitteroauth=newTwitterOAuth(YOUR_CONSUMER_KEY,YOUR_CONSUMER_SECRET);$request_token=$twitteroauth->getRequestToken('http://****/tw_response.php');$oauth_token=$request_token['oa

php - 在 PHP : random_bytes or openssl_random_pseudo_bytes? 中生成一次性 token

我需要在PHP中生成一次性token。我可以使用两个似乎做同样事情的函数:random_bytes和openssl_random_pseudo_bytes.例如,使用random_bytes:var_dump(bin2hex(random_bytes(12)));-->string(24)"338f489ec37a2c2b4943905d"并使用openssl_random_pseudo_bytes:var_dump(bin2hex(openssl_random_pseudo_bytes(12)));-->string(24)"1c7febea20029bd524fba8e7"open

php - 在 PHP : random_bytes or openssl_random_pseudo_bytes? 中生成一次性 token

我需要在PHP中生成一次性token。我可以使用两个似乎做同样事情的函数:random_bytes和openssl_random_pseudo_bytes.例如,使用random_bytes:var_dump(bin2hex(random_bytes(12)));-->string(24)"338f489ec37a2c2b4943905d"并使用openssl_random_pseudo_bytes:var_dump(bin2hex(openssl_random_pseudo_bytes(12)));-->string(24)"1c7febea20029bd524fba8e7"open