Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【问题】:random wallpaper api 403 #776

Closed
1 of 3 tasks
ayang0 opened this issue Jun 17, 2022 · 5 comments
Closed
1 of 3 tasks

【问题】:random wallpaper api 403 #776

ayang0 opened this issue Jun 17, 2022 · 5 comments
Labels
help 使用遇到问题(报错、样式与示例不一致等)

Comments

@ayang0
Copy link

ayang0 commented Jun 17, 2022

检查清单

  • 已经搜索过,没有发现类似 issue。
  • 已经搜索过主题文档,没有发现相关内容。
  • 已经尝试使用过最新版,问题依旧存在。

主题版本

5.4.0

复现地址

https://www.ayang.ga/

问题描述

image

配置文件

############################### Cover ############################### > start
cover:
height_scheme: full # full, half
layout_scheme: dock # blank (留白), search (搜索), dock (坞), featured (精选), focus (焦点)
display:
home: true
archive: true
others: false # can be written in front-matter 'cover: true'
background: https://uploadbeta.com/api/pictures/random/?key=BingEverydayWallpaperPicture

background: https://bing.ioliu.cn/v1/rand?w=1920&h=1200

logo: # https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/blog/[email protected]
title: 'Volantis'
subtitle: ''
search: A Wonderful Theme for Hexo # search bar placeholder
features:
- name: 文档
icon: #
img: volantis-static/media/twemoji/assets/svg/1f5c3.svg # https://cdn.jsdelivr.net/gh/twitter/[email protected]/assets/svg/1f5c3.svg
url: /v4/getting-started/
- name: 帮助
icon: #
img: volantis-static/media/twemoji/assets/svg/1f516.svg # https://cdn.jsdelivr.net/gh/twitter/[email protected]/assets/svg/1f516.svg
url: faqs/
- name: 示例
icon: #
img: volantis-static/media/twemoji/assets/svg/1f396.svg # https://cdn.jsdelivr.net/gh/twitter/[email protected]/assets/svg/1f396.svg
url: /examples/
- name: 社区
icon: #
img: volantis-static/media/twemoji/assets/svg/1f389.svg # https://cdn.jsdelivr.net/gh/twitter/[email protected]/assets/svg/1f389.svg
url: /contributors/
- name: 博客
icon: #
img: volantis-static/media/twemoji/assets/svg/1f4f0.svg # https://cdn.jsdelivr.net/gh/twitter/[email protected]/assets/svg/1f4f0.svg
url: /archives/
- name: 源码
icon: #
img: volantis-static/media/twemoji/assets/svg/1f9ec.svg # https://cdn.jsdelivr.net/gh/twitter/[email protected]/assets/svg/1f9ec.svg
url: https://github.com/volantis-x/hexo-theme-volantis/
############################### Cover ############################### > end

环境信息

No response

@ayang0 ayang0 added the help 使用遇到问题(报错、样式与示例不一致等) label Jun 17, 2022
@penndu
Copy link
Collaborator

penndu commented Jun 17, 2022

你的api没权限。
image

@MHuiG
Copy link
Member

MHuiG commented Jun 17, 2022

https://github.com/MHG-LAB/api/blob/main/api.js#L47

这种api可以自己写个自己用

GitHub
搜集到的一些古古怪怪的小玩意儿~~. Contribute to MHG-LAB/api development by creating an account on GitHub.

@MHuiG
Copy link
Member

MHuiG commented Jun 17, 2022

@xaoxuu https://source.unsplash.com 这个API似乎也即将被弃用 http://changelog.unsplash.com/deprecations/2021/11/25/source-deprecation.html

Create with the largest collection of high-quality images that are free to use. Trusted by Trello, Medium, and thousands of other API applications to power their free picture needs.

Unsplash API Changelog
Unsplash Source is being deprecated. Existing uses will continue to work, however for new projects use the full Unsplash API.

MHuiG added a commit that referenced this issue Jun 18, 2022
@ayang0 ayang0 closed this as completed Jun 19, 2022
@xaoxuu
Copy link
Member

xaoxuu commented Jun 20, 2022

新的API似乎都得用token了,有没有原来这种替代方案?

https://source.unsplash.com/2000x400/?code

访问就直接得到可以用的图片: https://source.unsplash.com/2000x400/?code

@xaoxuu
Copy link
Member

xaoxuu commented Jun 20, 2022

如果没有现成的接口的话,我能想到的办法就是自己写一个vercel来调用并返回图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help 使用遇到问题(报错、样式与示例不一致等)
Projects
None yet
Development

No branches or pull requests

4 participants