Script that auto updates arsen's prices? | API Developmen…

Script that auto updates arsen's prices?

    • milesdavis [2946525]
    • Role: Civilian
    • Level: 67
    • Posts: 463
    • Karma: 98
    • Last Action: 8 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 19:56:54 - 24/01/24 (7 months ago)
    |
    Last replied 07:58:28 - 23/02/24 (6 months ago)
    I know it already does a flat amount, but for individual items to update them by a % would be great. I know literally zero about this and API stuff seems ridiculously high level programming stuff. Does anyone know how to learn about interacting with AWH's api? and or a tool that already does what I'm looking for?
    • milesdavis [2946525]
    • Role: Civilian
    • Level: 67
    • Posts: 463
    • Karma: 98
    • Last Action: 8 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 22:33:06 - 24/01/24 (7 months ago)
    Post link copied to clipboard Copy post link
    Bump
    • milesdavis [2946525]
    • Role: Civilian
    • Level: 67
    • Posts: 463
    • Karma: 98
    • Last Action: 8 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 04:16:15 - 25/01/24 (7 months ago)
    Post link copied to clipboard Copy post link
    Bump
    • tiksan [2383326]
    • Role: Civilian
    • Level: 100
    • Posts: 899
    • Karma: 1,213
    • Last Action: 12 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 04:57:40 - 25/01/24 (7 months ago)
    Post link copied to clipboard Copy post link
    This is Arson Warehouse's API documentation: https://arsonwarehouse.com/trade-value-calculator/docs
    Last edited by tiksan on 04:57:51 - 25/01/24

    LnNwLrL.gif

    • milesdavis [2946525]
    • Role: Civilian
    • Level: 67
    • Posts: 463
    • Karma: 98
    • Last Action: 8 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 05:43:09 - 25/01/24 (7 months ago)
    Post link copied to clipboard Copy post link

    tiksan [2383326]

    This is Arson Warehouse's API documentation: https://arsonwarehouse.com/trade-value-calculator/docs
    man i wish i could just see a simple example of it setting prices by %. obviously I know nothing about coding but just that one example would be gold.
    • ultrapro5000 [3143234]
    • Role: Civilian
    • Level: 35
    • Posts: 13
    • Karma: 3
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 07:52:54 - 23/02/24 (6 months ago)
    Post link copied to clipboard Copy post link
    Hi Miles, depending on code of choice.. could use php guzzle library to make a post request to that endpoint with price as integer ( as the docs describe ), to increase by percent just do a GET request first to get current price, do the math to add percent, then POST the new price. That's if you're wanting to raise a percentage of your current price. To set according to a percent relative to market value, I'm a bit new and not sure where but just need to find market value for item on some api endpoint somewhere that has market prices. I'm surprised actually, I had assumed traders price lists would all be set by percentage across the board. Like, set it in one place for all listed items. Is that really not a thing? I'd code up an example for you but it'd probably take the better part of a day to iron it out before sending. If you try some tutorials you'll get the hang of it. Also, postman is a tool you can use for playing with apis via GUI. But it looks like the endpoint accepts integer for price amount, which is pretty standard.
    Last edited by ultrapro5000 on 07:54:43 - 23/02/24
    • ultrapro5000 [3143234]
    • Role: Civilian
    • Level: 35
    • Posts: 13
    • Karma: 3
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 07:58:28 - 23/02/24 (6 months ago)
    Post link copied to clipboard Copy post link
    Then I read the title more closely,, auto update is a bit more advanced. Need to setup a CRON job ( server scheduled script to run every x amount of time )
Reply
Thread Title: