PichuChen / go-mayohr

Unofficial Mayohr (apollo) golang client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

It's a unofficial API for mayohr system.

Usage

package main

import (
    "fmt"
    "github.com/pichuchen/go-mayohr"
)

func main () {
    username := os.Getenv("MAYOHR_USERNAME") // Change this to your username
	password := os.Getenv("MAYOHR_PASSWORD") // Change this to your password

	c := mayohr.NewClient(username, password)
	err := c.Login()
	if err != nil {
		fmt.Printf("failed to login: %v", err)
		return
	}
	fmt.Printf("ID Token: %v", c.IDToken)
}

The other examples are in examples directory.

About

Unofficial Mayohr (apollo) golang client

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 100.0%