| 
									
										
										
										
											2021-07-30 18:25:18 +08:00
										 |  |  | package apk | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import ( | 
					
						
							|  |  |  | 	"fmt" | 
					
						
							|  |  |  | 	"testing" | 
					
						
							|  |  |  | 	"time" | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func TestClient_GetUserInfo(t *testing.T) { | 
					
						
							|  |  |  | 	c := NewClient() | 
					
						
							| 
									
										
										
										
											2021-08-20 14:27:54 +08:00
										 |  |  | 	req := CreateSearchApkRequest() | 
					
						
							|  |  |  | 	req.GameIds = "3503" | 
					
						
							|  |  |  | 	req.Ver = "1.0.0" | 
					
						
							| 
									
										
										
										
											2021-07-30 18:25:18 +08:00
										 |  |  | 	req.SetReadTimeout(60 * time.Second) | 
					
						
							| 
									
										
										
										
											2021-08-20 14:27:54 +08:00
										 |  |  | 	resp, err := c.SearchApk(req) | 
					
						
							| 
									
										
										
										
											2021-07-30 18:25:18 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	fmt.Println(req) | 
					
						
							| 
									
										
										
										
											2021-08-20 14:27:54 +08:00
										 |  |  | 	fmt.Println(resp.GetHttpContentString()) | 
					
						
							| 
									
										
										
										
											2021-07-30 18:25:18 +08:00
										 |  |  | 	fmt.Println(err) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |