wso2page

package
v1.0.1-rel-02 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NAME_X_API_Key    = "X-API-Key"
	NAME_COOKIE_TOKEN = "AM_ACC_TOKEN_DEFAULT_P2"
	NAME_HEADER_TOKEN = "Authorization"
)

Variables

This section is empty.

Functions

func InjectWso2AgentRequest

func InjectWso2AgentRequest(s *Wso2AgentRequest)

func LoadWso2AgentRequest

func LoadWso2AgentRequest() baseiface.ISingleton

Types

type Pagination

type Pagination struct {
	Next     string `json:"next"`
	Previous string `json:"previous"`
	Offset   int    `json:"offset"`
	Limit    int    `json:"limit"`
	Total    int    `json:"total"`
}

type Wso2AgentRequest

type Wso2AgentRequest struct {
	basedto.BaseEntity
	Wso2Header

	RestyCli *resty.Client `json:"-"`
}

func FindBeanWso2AgentRequest

func FindBeanWso2AgentRequest() *Wso2AgentRequest

FindBeanWso2AgentRequest

func NewWso2AgentRequest

func NewWso2AgentRequest() *Wso2AgentRequest

func (*Wso2AgentRequest) CookieNew

func (self *Wso2AgentRequest) CookieNew() *resty.Client

gorpcclient.SetCookie(cookie1)

func (*Wso2AgentRequest) GenApikey

func (self *Wso2AgentRequest) GenApikey(pkeyType string, appid string) *basedto.IchubResult

func (*Wso2AgentRequest) Get

func (self *Wso2AgentRequest) Get(url string) (*resty.Response, error)

get

func (*Wso2AgentRequest) Get2Result

func (self *Wso2AgentRequest) Get2Result(url string) *basedto.IchubResult

func (*Wso2AgentRequest) NewR

func (self *Wso2AgentRequest) NewR() *resty.Request

func (*Wso2AgentRequest) Post

func (self *Wso2AgentRequest) Post(body interface{}, url string) (*resty.Response, error)

post

func (*Wso2AgentRequest) Post2Result

func (self *Wso2AgentRequest) Post2Result(body interface{}, url string) *basedto.IchubResult

func (*Wso2AgentRequest) QueryApp

func (self *Wso2AgentRequest) QueryApp(appName string) *basedto.IchubResult

func (*Wso2AgentRequest) QueryDemoApi

func (self *Wso2AgentRequest) QueryDemoApi() *basedto.IchubResult

func (*Wso2AgentRequest) QueryNewApi

func (self *Wso2AgentRequest) QueryNewApi() *basedto.IchubResult

{ "code": "900902", "message": "Missing Credentials", "description": "Invalid Credentials. Make sure your API invocation call has a header: 'Authorization : Bearer ACCESS_TOKEN' or 'Authorization : Basic ACCESS_TOKEN' or 'ApiKey : API_KEY'" }

func (*Wso2AgentRequest) R

func (self *Wso2AgentRequest) R() *resty.Request

menuPanel=visible; menuPanelType=main; Hm_lvt_50d438546dfe2f605b42aa9f26f22ad8=1717123964,1717149779,1717382795,1717554626; JSESSIONID=4C2B338A60FCD92C2755D64486354780; opbs=fdb33b36-0476-4f47-b01c-b4244e5e42e6; commonAuthId=c070f214-3785-4b95-995b-a5158a2972ec

type Wso2Header

type Wso2Header struct {
	Authorization string `json:"Authorization"`
	CookieToken   string `json:"CookieToken"`
	ContentType   string `json:"ContentType"`
	ApiKey        string `json:"ApiKey"`
}

type Wso2PageResult

type Wso2PageResult struct {
	Pagination Pagination `json:"pagination"`
	Count      int        `json:"count"`
	List       []any      `json:"list"`
}

func NewWso2PageResult

func NewWso2PageResult() *Wso2PageResult

Jump to

Keyboard shortcuts

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