Todos Nuevo

user:thomas gists creados por el usuario

title:mygist gists con el título indicado

filename:myfile.txt gists que contienen archivos con el nombre indicado

extension:yml gists que contienen archivos con la extensión indicada

language:go gists que contienen archivos con el lenguaje indicado

topic:homelab gists with given topic

Iniciar sesión


Todos Nuevo Iniciar sesión

All gists matching topic cache

Recientemente creado
Menos reciente creado
Recientemente actualizado
Menos reciente actualizado
LiuShen's Avatar

LiuShen / Action实现刷新EO缓存

0 gustos
0 bifurcaciones
2 archivos
Última actividad 1752049019
通过Python,在Github Action中实现EO站点缓存刷新
action auto cache edgeone eo github python tencent
1 import os
2 import json
3 from tencentcloud.common import credential
4 from tencentcloud.teo.v20220901 import teo_client, models
5 from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
6
7 try:
8 cred = credential.Credential(
9 os.getenv("TENCENTCLOUD_SECRET_ID"),
10 os.getenv("TENCENTCLOUD_SECRET_KEY")
LiuShen's Avatar

LiuShen / 利用CF Worker实现一个每日bing一图接口API

0 gustos
0 bifurcaciones
1 archivos
Última actividad 1744868788
利用CF Worker实现一个每日bing一图接口API,可以直接用作图片数据。
api bing cache cloudflare worker
1 // 利用api.nsmao.net实现的bing接口
2 const API_KEY = "ajdlfklahweufbrffbhjefjfsmd,shj" // 自行申请API
3 const CACHE_TTL = 36000 // 10 小时
4
5 export default {
6 async fetch(request, env, ctx) {
7 const { pathname } = new URL(request.url)
8
9 // 首页说明
10 if (pathname === "/") {
Siguiente Anterior

Desarrollado por Opengist ⋅ Load: 38ms⋅

Español
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文
⋅ 个人主页 ⋅ 站长博客