Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 months 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-29T04:08:52.000Z (about 8 years ago)
- Last Synced: 2023-12-20T11:08:44.393Z (about 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
[![Build Status](https://travis-ci.org/utahta/ustream-live-status.svg?branch=master)](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 mainimport (
"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