Closed StringNick closed 8 years ago
nowTime:=uint32(time.Now().Unix()) - 1000
offerResult, err := offerClient.GetOffers(true, true, true, true, false, &nowTime)
log.Println(len(offerResult.Sent)) for ,elem := range offerResult.Sent{ log.Println(*elem) } for , elem := range offerResult.Received { log.Println("qq") if len(elem.ToReceive)==0 && len(elem.ToGive) != 0 && elem.EscrowEndDate == 0 && elem.State==2 { //log.Println(elem) checkOffer(elem.TradeOfferId,offerClient) } else { log.Println(elem.State) if elem.State==2 { declineOffer(elem.TradeOfferId,offerClient) } } }
in offerResult.Sent show offers what i get from another ppl, and every element in offerResult.Sent, show othersteamid == my steam id,not partner WTF?
Use api only from the account from which you are using
nowTime:=uint32(time.Now().Unix()) - 1000
offerResult, err := offerClient.GetOffers(true, true, true, true, false, &nowTime)
log.Println(len(offerResult.Sent)) for ,elem := range offerResult.Sent{ log.Println(*elem) } for , elem := range offerResult.Received { log.Println("qq") if len(elem.ToReceive)==0 && len(elem.ToGive) != 0 && elem.EscrowEndDate == 0 && elem.State==2 { //log.Println(elem) checkOffer(elem.TradeOfferId,offerClient) } else { log.Println(elem.State) if elem.State==2 { declineOffer(elem.TradeOfferId,offerClient) } } }
in offerResult.Sent show offers what i get from another ppl, and every element in offerResult.Sent, show othersteamid == my steam id,not partner WTF?