This commit is contained in:
Jeffrey Paul 2018-10-25 06:12:43 -07:00
parent 7f411231c6
commit aba19d1e89
Signed by: sneak
GPG Key ID: 052443F4DF2A55C2
2 changed files with 2 additions and 6 deletions

View File

@ -3,12 +3,12 @@ package main
import (
"github.com/davecgh/go-spew/spew"
log "github.com/sirupsen/logrus"
//"fmt"
)
const steemAPIURL = "https://api.steemit.com"
func main() {
s := NewSteemAPI(steemAPIURL)
r, err := s.GetOpsInBlock(20000000)
@ -17,6 +17,5 @@ func main() {
log.Fatal(err)
}
//fmt.Println(r)
spew.Dump(r)
}

View File

@ -1,13 +1,10 @@
package main
import (
log "github.com/sirupsen/logrus"
//"fmt"
"encoding/json"
log "github.com/sirupsen/logrus"
)
//import "github.com/davecgh/go-spew/spew"
type SteemAPI struct {
url string
rpc *JSONRPC