go get -u -v github.com/orijtech/uber/v1You just need to have a serialized OAuth2.0 JSON configuration file saved in in $HOME/.uber/credentials.json
For each file, just do:
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "golang.org/x/crypto/acme/autocert" |
| <script type="text/javascript" src="https://storage.googleapis.com/realsp/rsp.min.js"></script> | |
| var resp = new Resp({ | |
| "itemId": "searchInput", | |
| "apiKey": "fe4123b3-ad36-44f7-9a5b-0ea8c3abc813", | |
| "initialSearch": initialKeyword, | |
| "onMessage": handleNewData, | |
| "onDisconnected": turnOnSpinnerGIF, | |
| "onConnected": turnOffSpinnerGIF, | |
| "onError": function(err) { |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "os" | |
| "github.com/orijtech/uber/v1" | |
| ) |
| package main | |
| import ( | |
| "encoding/json" | |
| "log" | |
| "os" | |
| "path/filepath" | |
| "github.com/orijtech/uber/oauth2" | |
| ) |
| 2017/07/11 01:25:03 http2: Transport failed to get client conn for precious.jp:443: http2: no cached connection was available | |
| 2017/07/11 01:25:04 http2: Transport creating client conn 0xc42014c1a0 to 202.238.151.220:443 | |
| 2017/07/11 01:25:04 http2: Framer 0xc42044d0a0: wrote SETTINGS len=18, settings: ENABLE_PUSH=0, INITIAL_WINDOW_SIZE=4194304, MAX_HEADER_LIST_SIZE=10485760 | |
| 2017/07/11 01:25:04 http2: Framer 0xc42044d0a0: wrote WINDOW_UPDATE len=4 (conn) incr=1073741824 | |
| 2017/07/11 01:25:04 http2: Transport encoding header ":authority" = "precious.jp" | |
| 2017/07/11 01:25:04 http2: Transport encoding header ":method" = "GET" | |
| 2017/07/11 01:25:04 http2: Transport encoding header ":path" = "/" | |
| 2017/07/11 01:25:04 http2: Transport encoding header ":scheme" = "https" | |
| 2017/07/11 01:25:04 http2: Transport encoding header "accept-encoding" = "gzip" | |
| 2017/07/11 01:25:04 http2: Transport encoding header "user-agent" = "Go-http-client/2.0" |
| package main | |
| import ( | |
| "math/big" | |
| "testing" | |
| ) | |
| var bns = []*big.Int{ | |
| big.NewInt(0), | |
| big.NewInt(10), |
| package main | |
| import ( | |
| "sync" | |
| "testing" | |
| ) | |
| type st struct { | |
| sync.Mutex |
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net" | |
| "net/http" | |
| "net/http/httputil" | |
| "net/url" |
go get -u github.com/orijtech/coinbase/v2