Giter VIP home page Giter VIP logo

cloudflare-workers-worker.js-uploader's Introduction

主要api

response = requests.put( f"https://api.cloudflare.com/client/v4/accounts/{account_id}/workers/services/{workers_id}/environments/production/content", headers=headers, data=body.encode() )

https://dash.cloudflare.com/f9dda5fd18bd0122b4c46f878e11b001/workers/services/view/dawn-sky-f8a8/production

对于在

Image text Image text Image text

中,左侧菜单栏,打开worker之后,长按 或右键一个worker,链接长这样

https://dash.cloudflare.com/f9dda5fd18bd0122b4c46f878e11b001/workers/services/view/dawn-sky-f8a8/production

account_identifier = '' service_name = ''

cf_token = ''

f9dda5fd18bd0122b4c46f878e11b001 填写到 account_identifier

dawn-sky-f8a8 填写到 service_name

申请

Image text 选择 编辑cloudflare workers类型 ,按默认,下面的选择自己邮箱即可 Image text 生成完


1. 其中f9dda5fd18bd0122b4c46f878e11b001 是用户id,而这个id,其实只要在

页,网页链接中就一直跟着 dash.cloudflare.com/f9dda5fd18bd0122b4c46f878e11b001

这个就是所有网页的前缀,所以直接访问 dash.cloudflare.com ,然后复制后半这串数字字母就可以了

2. worker的名字 dawn-sky-f8a8

在workers主页面内,访问 Image text https://dash.cloudflare.com/?to=/:account/workers-and-pages/ 左侧栏点击workers,就可以看到 Image text 同时创建worker时候,也看得到

3. api token 同样在worker主页面,下滑,

Image text

这里有一个管理API令牌的按钮

同时可以看到,用户id就写明了是之前提到的,dash.cloudflare.com主页面后跟着的那一串

也可以直接在

Image text

主页dash.cloudflare.com 右上角头像,点击个人简介,第一个,带邮箱那个按钮,然后也是这个api token申请页面

选择申请workers的 Image text Image text 即可

查看worker网站地址

Image text workers 页面,点击一个进去。 Image text 点击设置 ,点击第二个 trigger 触发器 Image text 同时在创建worker的时候也有,步骤2. 中点击create即是这个页面

cloudflare-workers-worker.js-uploader's People

Contributors

map987 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.