Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lopezjurip/siding-go
- Owner: lopezjurip
- Created: 2015-07-13T17:36:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-13T20:07:27.000Z (over 9 years ago)
- Last Synced: 2024-03-15T14:33:14.476Z (8 months ago)
- Language: Go
- Size: 125 KB
- Stars: 0
- Watchers: 2
- 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 mainimport (
"fmt""github.com/mrpatiwi/siding-go"
)func main() {
s := siding.Siding{Username: "username", Password: "password"}
var courseID uint = 2000resp, 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
```