api

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package api provides functions to interact with the CookieFarm server API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig() (models.ConfigShared, error)

GetConfig retrieves the configuration from the CookieFarm server API.

func Login

func Login(password string) (string, error)

Login sends a login request to the CookieFarm server API.

func SubmitBatchDirect

func SubmitBatchDirect(flags []models.ClientData) (string, error)

SubmitBatchDirect sends a batch of flags directly to the CookieFarm server API.

@IMPORTANT: I do not raccomend using this function, use websockets instead.

func SubmitDirect

func SubmitDirect(flag models.ClientData) (string, error)

SubmitDirect sends a single flag directly to the CookieFarm server API.

Types

This section is empty.

Jump to

Keyboard shortcuts

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