pdd.code_test.go 419 B

1234567891011121314151617181920
  1. package pdd
  2. import (
  3. "duoduo/tools"
  4. "fmt"
  5. "testing"
  6. )
  7. func TestPddCode(t *testing.T) {
  8. path := "https://jinbao.pinduoduo.com/open.html?response_type=code&client_id=a5d05569c6584a50bfb6600b2d150bae&redirect_uri=https://jinbao.pinduoduo.com/promotion/single-promotion&state=1212"
  9. dd, err := DuoDuoGet(path)
  10. if err != nil {
  11. fmt.Print("err = ", err.Error())
  12. }
  13. fmt.Print("dd = ", dd)
  14. tools.GetCurrntTime()
  15. }