requests

package
v1.9.2-rc0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActivateBalance added in v1.1.0

func NewActivateBalance(r *http.Request) (req resources.ActivateBalanceRequest, err error)

func NewClaimEvent

func NewClaimEvent(r *http.Request) (req resources.Relation, err error)

func NewCreateAbstractionAccount added in v1.7.2

func NewCreateAbstractionAccount(r *http.Request) (req resources.CreateAbstractionAccountRequest, err error)

func NewCreateBalance

func NewCreateBalance(r *http.Request) (req resources.CreateBalanceRequest, err error)

func NewCreateBalanceV2 added in v1.1.0

func NewCreateBalanceV2(r *http.Request) (req resources.Relation, err error)

func NewCreateBonusCode added in v1.9.0

func NewCreateBonusCode(r *http.Request) (req resources.BonusCodeRequest, err error)

func NewCreateEventType

func NewCreateEventType(r *http.Request) (req resources.EventTypeResponse, err error)

func NewDailyQuestion added in v1.6.0

func NewDailyQuestion(r *http.Request) (req resources.DailyQuestionCreateResponse, err error)

func NewDailyQuestionAnswer added in v1.5.0

func NewDailyQuestionAnswer(r *http.Request) (req resources.DailyQuestionAnswersResponse, err error)

func NewDailyQuestionEdit added in v1.6.0

func NewDailyQuestionEdit(r *http.Request) (req resources.DailyQuestionEditResponse, err error)

func NewFulfillPollEvent added in v1.3.0

func NewFulfillPollEvent(r *http.Request) (req resources.FulfillPollEventRequest, err error)

func NewFulfillQREvent

func NewFulfillQREvent(r *http.Request) (req resources.FulfillQrEventRequest, err error)

func NewGetEvent

func NewGetEvent(r *http.Request) (id string, err error)

func NewGetEventType

func NewGetEventType(r *http.Request) (name string, err error)

func NewUpdateEventType

func NewUpdateEventType(r *http.Request) (req resources.EventTypeResponse, err error)

func NewVerifyExternalPassport added in v1.3.0

func NewVerifyExternalPassport(r *http.Request) (req resources.VerifyPassportRequest, err error)

func NewVerifyInternalPassport added in v1.3.0

func NewVerifyInternalPassport(r *http.Request) (req resources.VerifyPassportRequest, err error)

func NewWithdraw added in v1.7.1

func NewWithdraw(r *http.Request) (req resources.WithdrawRequest, err error)

Types

type EditReferralsRequest

type EditReferralsRequest struct {
	Nullifier string `json:"nullifier"`
	Count     uint64 `json:"count"`
	Infinity  bool   `json:"infinity"`
}

func NewEditReferrals

func NewEditReferrals(r *http.Request) (req EditReferralsRequest, err error)

type GetBalance

type GetBalance struct {
	Nullifier     string
	Rank          bool `url:"rank"`
	ReferralCodes bool `url:"referral_codes"`
}

func NewGetBalance

func NewGetBalance(r *http.Request) (getBalance GetBalance, err error)

type Leaderboard

type Leaderboard struct {
	page.OffsetParams
	Count bool `url:"count"`
}

func NewLeaderboard

func NewLeaderboard(r *http.Request) (req Leaderboard, err error)

type ListEvents

type ListEvents struct {
	page.OffsetParams
	FilterNullifier     *string            `filter:"nullifier"`
	FilterStatus        []data.EventStatus `filter:"status"`
	FilterType          []string           `filter:"meta.static.name"`
	FilterHasExpiration *bool              `filter:"has_expiration"`
	FilterNotType       []string           `url:"filter[meta.static.name][not]"`
	Count               bool               `url:"count"`
}

func NewListEvents

func NewListEvents(r *http.Request) (req ListEvents, err error)

type ListExpiredEvents

type ListExpiredEvents struct {
	FilterName    []string `filter:"name"`
	FilterFlag    []string `filter:"flag"`
	FilterNotName []string `url:"filter[name][not]"`
	Count         bool     `url:"count"`
}

func NewListEventTypes

func NewListEventTypes(r *http.Request) (req ListExpiredEvents, err error)

type QuestionList added in v1.6.0

type QuestionList struct {
	page.OffsetParams
	Count bool `url:"count"`
}

func NewFilterStartAtDailyQuestions added in v1.6.0

func NewFilterStartAtDailyQuestions(r *http.Request) (req QuestionList, err error)

Jump to

Keyboard shortcuts

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