bupt_session

package
v0.0.0-...-4ad0ba2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2022 License: MIT Imports: 5 Imported by: 0

README

BUPT Session

北邮统一登录网关 Session。用于需要登录的网络请求。

Usage

package main

import (
	"fmt"
	"net/http"

	bupt_session "github.com/OpenBUPT/session/bupt_session_go"
)

func main() {
	client := &http.Client{}
	client, err := bupt_session.Login(client, "username", "password")
	if err != nil {
		fmt.Println(err)
	}
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(client *http.Client, username, password string) (*http.Client, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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