walker

package module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

README

walker

golang实现的刷步数的库,基于Zapp Life(原小米运动),支持手机号和邮箱两种登陆方式。

使用方法:


func TestNewWalker(t *testing.T) {
	w := NewWalker(WithUid("手机号或者邮箱"), WithPasswd("密码"), WithStep("步数"))
	err := w.Do()
	if err != nil {
		log.Fatalln(err)
	}
}

刷步原理

image

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWalker

func NewWalker(opt ...WalkerOpt) *walker

NewWalker 构造函数

Types

type WalkerOpt

type WalkerOpt func(opts *walkerOpts)

WalkerOpt walkerOpts helper

func WithPasswd

func WithPasswd(passwd string) WalkerOpt

WithPasswd 设置密码

func WithStep

func WithStep(step string) WalkerOpt

WithStep 设置步数

func WithUid

func WithUid(uid string) WalkerOpt

WithUid 设置uid

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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