我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Google API:每次运行时获取刷新/访问令牌

I am making a HTTP GET Request to the googleapi page to return information regarding my adsense account. When I do this, I send a header of Authorization: Bearer ACCESSTOKEN but the Access Token is only valid for 1 hour. How would I get a new Access Token the next time I run my script without using the browser?

When you are saving access token, save refresh token too (in authorization code exchange)

then, use refresh token to get new access token after 1 hour

近期文章

  • php在x char之后拆分字符串但仅限于句点
  • 值不在类的公共字段中赋值
  • 如何获取Instagram中特定图像的列表?
  • PHP帮助。 我需要一个在新窗口中打开的链接
  • 在codeIgniter中具有单值到字符串转换的数组
  • 在Excel中查看多个HTML表时无法设置TD宽度
  • 在加载页面之前,在每个页面上调用Laravel方法
  • 当用户向下滚动到屏幕底部时,如何进行Ajax调用
  • Php foreach echo(if / else)[重复]
  • PHPWord阅读器docx将所有每个文本包装成新的段落
  • Laravel Ajax问题
  • 如何根据存储在本地/会话存储中的值显示表列中的单元格?
  • Wordpress不包括搜索页面
  • 在laravel 5.2中从数据库中获取数据
  • 如何将jQuery表发送到Mysql数据库?
  • PHP Nullable Types无法按预期工作
  • laravel:将对象传递给d3.cal-heatmap
  • Ajax不显示DB的搜索值
  • 增加标题的宽度
  • 队列在Laravel队列上运行X个下一个作业

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华