hostlocavatar

package module
v0.0.0-...-4d38658 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2021 License: MIT Imports: 12 Imported by: 0

README

Hostloc Avatar Uploader

感谢这位老哥 https://hostloc.com/thread-838931-1-1.html

我刚好要换头像,懒得整图片,做了一个同步微信头像的版本:

第一步:

这是最麻烦的,记录 input 和 agent 两个参数,方法是,

打开 https://hostloc.com/home.php?mod=spacecp&ac=avatar

在页面任何地方点右键,选择,查看网页源代码

用搜索功能(快捷键是 Ctrl+F或者Command+F)搜索 "input=" 和 "agent="

参数是等号后边一直到 & 这个符号之前的内容

第二步:

关注我的一个公众号,然后对公众号说:

hostloc INPUT AGENT

注意这个 INPUT 和 AGENT 是要换成你刚才取到的两个字符串

然后就好了……

扫码关注

LetServerRun

关注公众号的作用是让我有权限可以拉到你的微信头像~

LetServerRun 是我作为独立开发者开发的一个小项目,可以让你用微信控制服务器,感觉有意思可以留着,要是用不到同步完头像取消关注就好了。

最后,在 INPUT 和 AGENT 后还可以再加个图片 URL,会把那幅图片上传成您的头像。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Upload

func Upload(input, agent, avatarURL string) error

Upload avatar to hostloc.com input and agent can getting from https://hostloc.com/home.php?mod=spacecp&ac=avatar search input= and agent= avatarURL is a online image url

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL