在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
package util import (
/** contentType := "application/json" req,err := http.NewRequest("POST",url,bytes.NewBuffer([]byte(bodyJson))) if err != nil { req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", authorization)) resp ,err := http.DefaultClient.Do(req) byts,err := ioutil.ReadAll(resp.Body)
/** contentType := "application/json" req,err := http.NewRequest("GET",url, nil) if err != nil { req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", authorization)) resp ,err := http.DefaultClient.Do(req) byts,err := ioutil.ReadAll(resp.Body)
|
请发表评论