【问题标题】:When I am trying to change the code to an access token, I get this error当我尝试将代码更改为访问令牌时,出现此错误
【发布时间】:2017-02-13 13:41:44
【问题描述】:

我正在使用 dirkgroenen pinterest api,所以它在 1 个月内完全没问题,但现在在将代码更改为访问令牌时出现此错误

注意:第 227 行 /home/socialwe/public_html/SWT/SMs/pinterestApi/vendor/dirkgroenen/pinterest-api-php/src/Pinterest/Transport/Request.php 中的数组到字符串转换

致命错误:在 /home/socialwe/public_html/SWT/SMs/pinterestApi/vendor/dirkgroenen/ 中出现未捕获的异常“DirkGroenen\Pinterest\Exceptions\PinterestException”和消息“Pinterest 错误(代码:403)和消息:禁止” pinterest-api-php/src/Pinterest/Transport/Request.php:227 堆栈跟踪:#0 /home/socialwe/public_html/SWT/SMs/pinterestApi/vendor/dirkgroenen/pinterest-api-php/src/Pinterest/Transport /Request.php(98): DirkGroenen\Pinterest\Transport\Request->execute('POST', 'https://api.pin...', Array) #1 /home/socialwe/public_html/SWT/SMs/pinterestApi/vendor /dirkgroenen/pinterest-api-php/src/Pinterest/Auth/PinterestOAuth.php(143): DirkGroenen\Pinterest\Transport\Request->post('oauth/token', Array) #2 /home/socialwe/public_html/ SWT/SMs/pinterestApi/index.php(18): DirkGroenen\Pinterest\Auth\PinterestOAuth->getOAuthToken('dfb587ef87beaaa...') #3 {main} 抛出 /home/socialwe/public_html/SWT/SMs/pinterestApi /vendor/dirkgroenen/pinterest-api-php/src/Pinterest/Transport/Request.php on lin e 227

【问题讨论】:

    标签: api pinterest


    【解决方案1】:

    这是因为我的服务器 IP 已被 pinterest 阻止。 现在我在另一台服务器上检查了它,它在那里工作正常

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-01-26
      • 2021-12-24
      • 2019-08-22
      • 2015-12-08
      • 1970-01-01
      • 1970-01-01
      • 2022-11-07
      相关资源
      最近更新 更多