Travel Run json Beta Testing | API Development | TORN

Travel Run json Beta Testing

​

    • Betty_Butcher [1275358]
    • Role: Civilian
    • Level: 83
    • Posts: 232
    • Karma: 181
    • Last Action: 6 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 21:08:13 - 23/06/16 (10 years ago)
    |
    Last replied 06:00:08 - 09/08/16 (10 years ago)
    Hey all,

    Since ebcdic has not been seen in quite some time, I have decided to move the TravelRun github to a new home. While working on moving it, I saw that someone had requested some pulls to add json functionality, and have decided implement the changes suggested.

    I am open to changes and suggestions, but thought I would throw this out there as a beta and gauge interest. I have been working with Mauk and the DOCTORN team to get TravelRun implementation into their project, so that hopefully will also be coming down the pipe.

    JSON link: http://travelrun.torncentral.com/records.json

    D
    uring the beta, I am going to best testing requests and server loads to see what sort of stress is added (I am guessing not much). Once the beta is complete, if any changes are made, I will post an update!

    In the mean time, enjoy!

    SbOeJpm.jpeg

    • IceBlueFire [776]
    • Role: Officer
    • Level: 100
    • Posts: 2,713
    • Karma: 10,833
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:25:51 - 23/06/16 (10 years ago)
    Post link copied to clipboard Copy post link
    Care to explain it a bit? I'm guessing it's {location_id: {item_id: {cost: 123, left: 456} } }
    • McNeo [864688]
    • Role: Civilian
    • Level: 81
    • Posts: 2,519
    • Karma: 1,955
    • Last Action: 4 years
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 22:11:39 - 23/06/16 (10 years ago)
    Post link copied to clipboard Copy post link

    IceBlueFire [776]

    Care to explain it a bit? I'm guessing it's {location_id: {item_id: {cost: 123, left: 456} } }
    That's what it looks like to me, but what are the location IDs? Something from Torn or proprietary to TravelRun?
    • Betty_Butcher [1275358]
    • Role: Civilian
    • Level: 83
    • Posts: 232
    • Karma: 181
    • Last Action: 6 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 04:27:06 - 24/06/16 (10 years ago)
    Post link copied to clipboard Copy post link
    Crap, I am sorry guys :( I didn't even think about that.. I will make a few changes to make it easier to read, and yes IceBlueFire, you are correct...

    McNeo, they are just the ids for the records in Travel Run:

    1: Mexico
    2: Cayman Islands
    3: Canada
    4: Hawaii
    5: United Kingdom
    6: Argentina
    7: Switzerland
    8: Japan
    9: China
    10: UAE
    11: South Africa

    SbOeJpm.jpeg

    • byrod [1132772]
    • Role: Civilian
    • Level: 100
    • Posts: 2,624
    • Karma: 4,261
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:24:38 - 24/06/16 (10 years ago)
    Post link copied to clipboard Copy post link

    Betty_Butcher [1275358]

    Crap, I am sorry guys :( I didn't even think about that.. I will make a few changes to make it easier to read, and yes IceBlueFire, you are correct... McNeo, they are just the ids for the records in Travel Run: 1: Mexico 2: Cayman Islands 3: Canada 4: Hawaii 5: United Kingdom 6: Argentina 7: Switzerland 8: Japan 9: China 10: UAE 11: South Africa
    ... if you make some changes, maybe you could treat the Cayman Islands like all other destinations:



    In general, I like the idea of adding json functionality to travelrun. That gives the API developers a lot of new opportunities.

    Thanks for the time and efforts you put in this!

    /by

    Maker of TornEngine

    • Betty_Butcher [1275358]
    • Role: Civilian
    • Level: 83
    • Posts: 232
    • Karma: 181
    • Last Action: 6 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:29:39 - 24/06/16 (10 years ago)
    Post link copied to clipboard Copy post link
    ah yeah, that one must have slipped in while I was testing some changes, it should be back to normal shortly
    Last edited by Betty_Butcher on 12:35:09 - 24/06/16 (10 years ago)

    SbOeJpm.jpeg

    • byrod [1132772]
    • Role: Civilian
    • Level: 100
    • Posts: 2,624
    • Karma: 4,261
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:56:33 - 28/06/16 (10 years ago)
    Post link copied to clipboard Copy post link
    Are there any plans to add an 'last updated' timestamp to it? ;-)

    /by

    Maker of TornEngine

    • Betty_Butcher [1275358]
    • Role: Civilian
    • Level: 83
    • Posts: 232
    • Karma: 181
    • Last Action: 6 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:07:19 - 28/06/16 (10 years ago)
    Post link copied to clipboard Copy post link
    There is now!

    :)

    SbOeJpm.jpeg

    • McNeo [864688]
    • Role: Civilian
    • Level: 81
    • Posts: 2,519
    • Karma: 1,955
    • Last Action: 4 years
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 19:34:46 - 28/06/16 (10 years ago)
    Post link copied to clipboard Copy post link

    Betty_Butcher [1275358]

    There is now! :)
    Can I ask that it be in the usual epoch time code format? That will allow us to format the time correctly for various different for as around d the world.
    • Betty_Butcher [1275358]
    • Role: Civilian
    • Level: 83
    • Posts: 232
    • Karma: 181
    • Last Action: 6 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 02:56:56 - 29/06/16 (10 years ago)
    Post link copied to clipboard Copy post link

    McNeo [864688]

    Can I ask that it be in the usual epoch time code format? That will allow us to format the time correctly for various different for as around d the world.
    Oh now you are just asking way too much... give someone an inch and they want to take 2... ;)

    SbOeJpm.jpeg

    • McNeo [864688]
    • Role: Civilian
    • Level: 81
    • Posts: 2,519
    • Karma: 1,955
    • Last Action: 4 years
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 03:15:01 - 29/06/16 (10 years ago)
    Post link copied to clipboard Copy post link

    McNeo [864688]

    Can I ask that it be in the usual epoch time code format? That will allow us to format the time correctly for various different for as around d the world.

    Betty_Butcher [1275358]

    Oh now you are just asking way too much... give someone an inch and they want to take 2... ;)
    Well for everything I do in .NET I can convert any time format to any other easily enough, but I'm not sure what it's like in any other languages. Using the standard just makes it easier for developers all around :)
    • byrod [1132772]
    • Role: Civilian
    • Level: 100
    • Posts: 2,624
    • Karma: 4,261
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:36:18 - 29/06/16 (10 years ago)
    Post link copied to clipboard Copy post link

    McNeo [864688]

    Can I ask that it be in the usual epoch time code format? That will allow us to format the time correctly for various different for as around d the world.

    Betty_Butcher [1275358]

    Oh now you are just asking way too much... give someone an inch and they want to take 2... ;)

    McNeo [864688]

    Well for everything I do in .NET I can convert any time format to any other easily enough, but I'm not sure what it's like in any other languages. Using the standard just makes it easier for developers all around :)
    Standards <3

    /by

    Maker of TornEngine

    • LouBaker [1162207]
    • Role: Civilian
    • Level: 100
    • Posts: 3,178
    • Karma: 2,015
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:39:26 - 01/07/16 (10 years ago)
    Post link copied to clipboard Copy post link
    Thanks Betty for adding this.
    there is not need to add a time frame. as this defeats the point of Torn's Destination reports and the actual use of the TravelRun Site.

    I have been using your http://travelrun.torncentral.com/flowers.php link to pickup info on flowers. the data is not always up to date but can be used as reference. confirmation on the data force's me to use TravelRun and also reminds to use and update the site.

    Your API has more than enough information of all items abroad. more than the link i was using a above

    having all the data in an API will make people lazy, not come to your site and in the end rely on other people adding new information.

    I say don't add a Time reference.

                Torn's Frequent Flyers  e8718ac3-17de-4d5c-b845-7fe8fdb07283-1162207.jpg?v=1040063

    • Swatsicle [1593313]
    • Role: Civilian
    • Level: 100
    • Posts: 6,094
    • Karma: 9,111
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:26:03 - 01/07/16 (10 years ago)
    Post link copied to clipboard Copy post link

    LouBaker [1162207]

    Thanks Betty for adding this. there is not need to add a time frame. as this defeats the point of Torn's Destination reports and the actual use of the TravelRun Site. I have been using your [url=http://travelrun.torncentral.com/flowers.php]http://travelrun.torncentral.com/flowers.php[/url] link to pickup info on flowers. the data is not always up to date but can be used as reference. confirmation on the data force's me to use TravelRun and also reminds to use and update the site. Your API has more than enough information of all items abroad. more than the link i was using a above having all the data in an API will make people lazy, not come to your site and in the end rely on other people adding new information. I say don't add a Time reference.
    Meh. My IRC bot already goes through the HTML anyway (made before the API) and gets the time. Not that hard to not have to go to the actual site itself.

     

    • McNeo [864688]
    • Role: Civilian
    • Level: 81
    • Posts: 2,519
    • Karma: 1,955
    • Last Action: 4 years
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:51:15 - 01/07/16 (10 years ago)
    Post link copied to clipboard Copy post link

    LouBaker [1162207]

    Thanks Betty for adding this. there is not need to add a time frame. as this defeats the point of Torn's Destination reports and the actual use of the TravelRun Site. I have been using your [url=http://travelrun.torncentral.com/flowers.php]http://travelrun.torncentral.com/flowers.php[/url] link to pickup info on flowers. the data is not always up to date but can be used as reference. confirmation on the data force's me to use TravelRun and also reminds to use and update the site. Your API has more than enough information of all items abroad. more than the link i was using a above having all the data in an API will make people lazy, not come to your site and in the end rely on other people adding new information. I say don't add a Time reference.
    It's not "needed" - none of it is "needed" - but it's nice to have. TravelRun already gives the last updated time on their pages so they're already tracking that data, it's just a matter of adding it to their API. It would be much easier than scraping the HTML in the forums and be more up-to-date.
    • Dos-Equis-XX [500173]
    • Role: Civilian
    • Level: 69
    • Posts: 1,723
    • Karma: 639
    • Last Action: 50 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:25:10 - 06/08/16 (10 years ago)
    Post link copied to clipboard Copy post link
    Hello Betty_Butcher,


    Could you please add: Combat Helmet, Combat Gloves, Combat Pants and Combat Boots to the Travel Run items list? [:wink:]

    It infuriates me to no end when I blind fly to South Africa, only to find it empty of those items. [:tired:]

    And also false information being given out about those item stocks. [:dizzy:]


    Thank you for your time and consideration, my friends.
    Last edited by Dos-Equis-XX on 18:27:20 - 06/08/16 (10 years ago)
    • LouBaker [1162207]
    • Role: Civilian
    • Level: 100
    • Posts: 3,178
    • Karma: 2,015
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:16:20 - 07/08/16 (10 years ago)
    Post link copied to clipboard Copy post link

    Dos-Equis-XX [500173]

    Hello Betty_Butcher, Could you please add: [u][b]Combat Helmet[/b][/u], [u][b]Combat Gloves[/b][/u], [u][b]Combat Pants[/b][/u] and [u][b]Combat Boots[/b][/u] to the Travel Run items list? [url=/images/v2/smiles/face_08.gif][:wink:] [/url] It infuriates me to no end when I blind fly to South Africa, only to find it empty of those items. [url=/images/v2/smiles/face_07.gif][:tired:] [/url] And also false information being given out about those item stocks. [url=/images/v2/smiles/face_15.gif][:dizzy:] [/url] Thank you for your time and consideration, my friends.
    Armor items where removed from travelrun when company destination report special became available.

                Torn's Frequent Flyers  e8718ac3-17de-4d5c-b845-7fe8fdb07283-1162207.jpg?v=1040063

    • Dos-Equis-XX [500173]
    • Role: Civilian
    • Level: 69
    • Posts: 1,723
    • Karma: 639
    • Last Action: 50 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:42:23 - 07/08/16 (10 years ago)
    Post link copied to clipboard Copy post link

    LouBaker [1162207]

    Armor items where removed from travelrun when company destination report special became available.
    Hello LouBaker,

    Then explain why you still see Armour items in for example: Mexico. [:wink:]

    And you can still see Weapons everywhere. [:cool:]

    If you're going to have Travel Run up and running, then all of the items should be listed.

    You would have to take out: Melee Weapons, Primary Weapons, Secondary Weapons, Temporary Items, Enhancers.

    Cruise Line Agency provides:
    Destination Report10View stock analysis of all items at a selected country

    Flower Shop provides:
    10Floral Contacts10View stock analysis of flowers in all countries

    Toy Shop provides:
    10Toy Importer10View stock analysis of plushies in all countries

    So might as well take Travel Run down since those Companies pretty much cover it . [:wink:]

    I know Travel Run is missing: Construction Helmet, WWII Helmet, Flexible Body Armor?, Liquid Body Armor?, Combat Vest?, Safety Boots, Hiking Boots, Kevlar Gloves. ( ones with ? denote, might be shown on Travel Run but unsure )

    For sake of convenience and sanity they should all be listed. [:dizzy:]

    I would be insane to quit my current job to join one of the above companies, just to make use of what a great service Travel Run already provides.


    Well that's my Dos cents on the subject. [:wink:]


    Thank you for reading, my friends.
    Last edited by Dos-Equis-XX on 17:44:27 - 07/08/16 (10 years ago)
    • Wolverine [1971836]
    • Role: Civilian
    • Level: 100
    • Posts: 6,574
    • Karma: 6,618
    • Last Action: 52 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 06:00:08 - 09/08/16 (10 years ago)
    Post link copied to clipboard Copy post link

    IceBlueFire [776]

    Care to explain it a bit? I'm guessing it's {location_id: {item_id: {cost: 123, left: 456} } }
    is there a chance that you do the same for your gym gains formula?

    you could ks explode a web api that accepts daily xanax taken, natural energy, gym, etcetera, and returns the number of days needed to reach a stat objective.

    this would allow anyone to use your gym gains formula in their tool without accessing torn stats (it's the only reason for which I access torn stats every day).
Reply
Thread Title: