Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3630
  • Joined

  • Last visited

Posts posted by Dr. McKay

  1. 11 hours ago, SPdX said:

    I was going through this suggestion you made of using node-steamcommunity but it looks like steam account needs to have a phone number verified before that process can be followed. In steam mobile app, I noticed that you can get steam guard working even without adding any phone number.

    I believe same process is followed by Steam Desktop Authenticator as well. Is there some option available in node-steamcommunity as well? Am I missing something here?

    I tested adding steam guard without phone number on a new account using ipad, if that matters.

    Just add 2FA the same way you would if you had a phone number. The code gets sent to your email instead of your phone.

  2. 2 hours ago, 月光下漫步 said:

    In GetTradeStatus, even if a trade is rolled back midway, it still returns a success status (3). It has been observed that when using the start_after_time parameter in the GetTradeHistory API, there are still cases where the corresponding tradeid is not returned—approximately 1 out of every 20 trades. Therefore, it’s still necessary to paginate through the results to locate it.

    A trade that's reversed during Trade Protection will go to status 12 in GetTradeHistory and GetTradeStatus.

  3. 51 minutes ago, 月光下漫步 said:
    1. Retrieve time_updated from the Trade Offer API

    First, use the Steam Trade Offer API to get the time_updated field of the target trade. For example:

    https://api.steampowered.com/IEconService/GetTradeOffer/v1/?tradeofferid=8301957547&access_token=xx.xx.xx

     

    {
      "response": {
        "offer": {
          "tradeofferid": "8301957547",
          "tradeid": "807950398061201297",
          "time_updated": 1753501576,
          ...
        }
      }
    }
    1. Use time_updated as the start_after_time parameter to query the Trade History API

    Next, pass the time_updated value as the start_after_time parameter when calling the Trade History API:

    GET https://api.steampowered.com/IEconService/GetTradeHistory/v1/?max_trades=1&start_after_time=1753501576&access_token=xxx.xxx.xxx

    The API response will include the trade information starting from that timestamp:

    {
      "response": {
        "more": true,
        "trades": [
          {
            "tradeid": "807950398061201297",
            "time_init": 1753501576,
            ...
          },
          ...
        ]
      }
    }

    This method allows you to accurately locate a trade in the trade history using the time_updated value, which is useful for tracking or further processing.

    Or you could just use GetTradeStatus which takes a tradeid as input?

  4. Moved to correct forum - this was in an update to node-steam-session, not node-steam-user.

    As far as I've seen, this parameter is present for any GET request issued by the mobile app to the WebAPI. Confirmations don't go through the API so it's not present for those requests.

    In practice, the only request that origin=SteamMobile is added to in steam-session is the initial GetPasswordRSAPublicKey request as that's the only GET request issued when using EAuthTokenPlatformType.MobileApp.

×
×
  • Create New...