works
This commit is contained in:
parent
7f411231c6
commit
aba19d1e89
3
main.go
3
main.go
|
@ -3,12 +3,12 @@ package main
|
||||||
import (
|
import (
|
||||||
"github.com/davecgh/go-spew/spew"
|
"github.com/davecgh/go-spew/spew"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
//"fmt"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const steemAPIURL = "https://api.steemit.com"
|
const steemAPIURL = "https://api.steemit.com"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
s := NewSteemAPI(steemAPIURL)
|
s := NewSteemAPI(steemAPIURL)
|
||||||
|
|
||||||
r, err := s.GetOpsInBlock(20000000)
|
r, err := s.GetOpsInBlock(20000000)
|
||||||
|
@ -17,6 +17,5 @@ func main() {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
//fmt.Println(r)
|
|
||||||
spew.Dump(r)
|
spew.Dump(r)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,10 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
log "github.com/sirupsen/logrus"
|
|
||||||
//"fmt"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
//import "github.com/davecgh/go-spew/spew"
|
|
||||||
|
|
||||||
type SteemAPI struct {
|
type SteemAPI struct {
|
||||||
url string
|
url string
|
||||||
rpc *JSONRPC
|
rpc *JSONRPC
|
||||||
|
|
Loading…
Reference in New Issue