Philipp15b / go-steam

Steam's protocol in Go to allow automation of different actions on the Steam network without running an actual Steam client. Includes APIs for friends, chatting, trading, trade offers and TF2 crafting.
https://pkg.go.dev/github.com/Philipp15b/go-steam/v3
Other
392 stars 132 forks source link

TradeOffer not sending status code != 200 #45

Closed PanicIsReal closed 9 years ago

PanicIsReal commented 9 years ago

This is what I'm currently sending:

    token := "vome_AF4"
    log.Println(token)
    log.Println(itemsToSend)
    log.Println(itemsToReceive)
    log.Println(winner)

    result, err := Trader.Create(winner, &token, itemsToSend, itemsToReceive, nil, "")
    if err != nil {
            log.Println(err)
    }

    015/09/10 19:52:09 vome_AF4
    2015/09/10 19:52:09 [{295110 1 1 169261971528374824} {295110 1 1 169261971528374903} {295110 1 1 169261971528374832} {295110 1 1 169261971528374912}]
    2015/09/10 19:52:09 []
    2015/09/10 19:52:09 STEAM_0:1:70894715
    2015/09/10 19:52:09 create error: status code not 200

I'm not sure why I'm getting the error I'm getting everything is correctly entered into the .Create method any information would be fantastic cause I'm pullin my hair out!