https://github.com/utahta/ustream-live-status
Get live status of channel on Ustream
https://github.com/utahta/ustream-live-status
go ustream
Last synced: 4 days ago
JSON representation
Get live status of channel on Ustream
- Host: GitHub
- URL: https://github.com/utahta/ustream-live-status
- Owner: utahta
- License: mit
- Created: 2016-10-27T13:16:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-29T04:08:52.000Z (over 9 years ago)
- Last Synced: 2025-03-04T17:37:13.595Z (over 1 year ago)
- Topics: go, ustream
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ustream live status
[](https://travis-ci.org/utahta/ustream-live-status)
Get the ustream live status.
## Installing
```
$ go get -u github.com/utahta/ustream-live-status/cmd/uststat
```
## Usage
```
$ uststat -h
Usage of uststat:
-name string
Specifies the ustream channel name
```
```
$ uststat -name iss-hdev-payload
live
```
```
$ uststat -name momoclotv
offline
```
## Example
```go
package main
import (
"log"
"github.com/utahta/ustream-live-status"
)
func main() {
c, err := uststat.New()
if err != nil {
log.Fatal(err)
}
live, err := c.IsLive("iss-hdev-payload")
if err != nil {
log.Fatal(err)
}
log.Print(live)
}
```
## Contributing
1. Fork it ( https://github.com/utahta/uststat/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request