美文网首页
美团闪购健康医药健康golang sdk

美团闪购健康医药健康golang sdk

作者: EasyNetCN | 来源:发表于2022-04-07 06:38 被阅读0次

    美团闪购健康医药健康golang sdk(https://github.com/easynet-cn/go-meituan),实现了以下内容:

    import (
        "fmt"
        "net/http"
        "testing"
    )
    
    func Test_ShanGouClient(t *testing.T) {
        httpClient := &http.Client{}
    
        shanGouClient := &ShanGouClient{
            HttpClient: httpClient,
            AppId:      "0000",
            AppSecret:  "a00ba58f000001aa697ab000006d52d",
        }
    
        bytes, err := shanGouClient.DoRequest("https://waimaiopen.meituan.com/api/v1/order/getOrderDaySeq", "GET", "", &GetOrderDaySeqRequest{AppPoiCode: "31号测试店"})
    
        fmt.Println(string(bytes), err)
    }
    
    type GetOrderDaySeqRequest struct {
        AppPoiCode string `url:"app_poi_code"`
    }
    

    相关文章

      网友评论

          本文标题:美团闪购健康医药健康golang sdk

          本文链接:https://www.haomeiwen.com/subject/lcljsrtx.html