2018-10-04 18:41:39 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/davecgh/go-spew/spew"
|
2018-10-18 08:39:41 +00:00
|
|
|
log "github.com/sirupsen/logrus"
|
|
|
|
//"fmt"
|
2018-10-04 18:41:39 +00:00
|
|
|
)
|
|
|
|
|
2018-10-18 08:39:41 +00:00
|
|
|
const steemAPIURL = "https://api.steemit.com"
|
2018-10-18 07:09:30 +00:00
|
|
|
|
2018-10-04 18:41:39 +00:00
|
|
|
func main() {
|
2018-10-18 08:39:41 +00:00
|
|
|
s := NewSteemAPI(steemAPIURL)
|
2018-10-04 18:41:39 +00:00
|
|
|
|
2018-10-18 08:39:41 +00:00
|
|
|
r, err := s.GetOpsInBlock(20000000)
|
2018-10-04 18:41:39 +00:00
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
log.Fatal(err)
|
|
|
|
}
|
|
|
|
|
2018-10-18 08:39:41 +00:00
|
|
|
//fmt.Println(r)
|
2018-10-04 18:41:39 +00:00
|
|
|
spew.Dump(r)
|
|
|
|
}
|