实现access_token获取

This commit is contained in:
wenzl committed 2016-09-11 13:16:15 +08:00
1 parent 33f2b2ef60
commit d9075933c1
7 files changed
+195 -4

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
package util
import (
"io/ioutil"
"net/http"
)
//HTTPGet get 请求
func HTTPGet(url string) ([]byte, error) {
response, err := http.Get(url)
if err != nil {
return nil, err
}
return ioutil.ReadAll(response.Body)
}
//HTTPPost post 请求
func HTTPPost() {
}