Skip to content

Unofficial Library for Brawijaya University Authentication (Email and NIM)

License

Notifications You must be signed in to change notification settings

ahmdyaasiin/ub-auth-without-notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brawijaya University Authentication Without Notification

Overview

This library helps make it easier to check if someone is really a student at Universitas Brawijaya. It lets developers quickly confirm someone's identity using their UB email or student ID number (NIM).

Installation

Create a new directory for your project and change into it. Next, initialize your project using Go modules by running the following command in your terminal:

go mod init module-name

Install the library with the command below:

go get -u github.com/ahmdyaasiin/ub-auth-without-notification/v2

Quickstart

Create a new file and copy the code below into the file.

package main

import (
    "fmt"
    u "github.com/ahmdyaasiin/ub-auth-without-notification/v2"
    "log"
)

func main() {
    //
    resp, err := u.AuthUB("EMAIL_OR_NIM_HERE", "PASSWORD_HERE")
    if err != nil {
        log.Fatal(err)
    }
    
    fmt.Println(resp)
}

If the email or NIM and password are correct, the output of the file should be as follows:

{NIM FullName Email Faculty StudyProgram}

About

Unofficial Library for Brawijaya University Authentication (Email and NIM)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages