https://github.com/lopezjurip/siding-go
Perform a HTTP login request to http://ing.puc.cl
https://github.com/lopezjurip/siding-go
Last synced: 9 months ago
JSON representation
Perform a HTTP login request to http://ing.puc.cl
- Host: GitHub
- URL: https://github.com/lopezjurip/siding-go
- Owner: lopezjurip
- Created: 2015-07-13T17:36:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-13T20:07:27.000Z (over 10 years ago)
- Last Synced: 2025-03-08T08:12:14.872Z (9 months ago)
- Language: Go
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```