MCPcopy Create free account
hub / github.com/FloatTech/AnimeAPI / EmotionMsglistRaw

Method EmotionMsglistRaw

qzone/api.go:300–318  ·  view source on GitHub ↗

EmotionMsglistRaw 获取说说列表

(mlr MsgListRequest)

Source from the content-addressed store, hash-verified

298
299// EmotionMsglistRaw 获取说说列表
300func (m *Manager) EmotionMsglistRaw(mlr MsgListRequest) (mlv MsgListVo, err error) {
301 client := &http.Client{}
302 request, err := http.NewRequest("GET", msglistURL+"?"+structToStr(mlr), nil)
303 if err != nil {
304 return
305 }
306 request.Header.Add("referer", userQzoneURL)
307 request.Header.Add("origin", userQzoneURL)
308 request.Header.Add("cookie", m.Cookie)
309 request.Header.Add("user-agent", ua)
310 request.Header.Add("content-type", contentType)
311 response, err := client.Do(request)
312 if err != nil {
313 return
314 }
315 defer response.Body.Close()
316 err = json.NewDecoder(response.Body).Decode(&mlv)
317 return
318}
319
320// LikeRaw 空间点赞(貌似只能给自己点赞,预留)
321func (m *Manager) LikeRaw(lr LikeRequest) (err error) {

Callers 1

EmotionMsglistMethod · 0.95

Calls 1

structToStrFunction · 0.85

Tested by

no test coverage detected