Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lopezjurip/siding-go

Perform a HTTP login request to http://ing.puc.cl
https://github.com/lopezjurip/siding-go

Last synced: 25 days ago
JSON representation

Perform a HTTP login request to http://ing.puc.cl

Awesome Lists containing this project

README

        

# siding-go

## Installation

```shell
go install github.com/mrpatiwi/siding-go
```

## Usage

```go
package main

import (
"fmt"

"github.com/mrpatiwi/siding-go"
)

func main() {
s := siding.Siding{Username: "username", Password: "password"}
var courseID uint = 2000

resp, err := s.Announcements(courseID)
if err != nil {
fmt.Println("Error:", err)
return
}

html, err := siding.ReadResponse(resp)
if err != nil {
fmt.Println("Error:", err)
return
}

fmt.Println(html)
}
```

## Testing

```sh
go test --user USERNAME -pass PASSWORD
```