Get chain report with chain ID from API | API Development | TO…

Get chain report with chain ID from API

    • TheFoxMan [1936821]
    • Role: Civilian
    • Level: 76
    • Posts: 710
    • Karma: 486
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 14:55:33 - 06/12/21 (2 years ago)
    |
    Last replied 03:57:22 - 29/12/21 (2 years ago)
    Hi!

    So, a recent change in the faction chain report page has made the names of the players in the chain report unavailable when using honor bars. I could get only IDs of the members involved in the chain. So I was wondering if there is a way to get the names and IDs of members in chain.

    Thank You.

    Yes. Yes. No. Yes. Yes.

    • TheFoxMan [1936821]
    • Role: Civilian
    • Level: 76
    • Posts: 710
    • Karma: 486
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:01:27 - 06/12/21 (2 years ago)
    Post link copied to clipboard Copy post link
    Um, my friend told me that the API endpoint doesn't provide the names.

    @Staff, can this be moved into suggestions or should I make a new one ?

    Yes. Yes. No. Yes. Yes.

    • LouBaker [1162207]
    • Role: Civilian
    • Level: 100
    • Posts: 3,013
    • Karma: 1,868
    • Last Action: 40 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:28:45 - 26/12/21 (2 years ago)
    Post link copied to clipboard Copy post link

    TheFoxMan [1936821]

    Um, my friend told me that the API endpoint doesn't provide the names.

    @Staff, can this be moved into suggestions or should I make a new one ?
    The names can be collected with a second call https://api.torn.com/faction/?selections=basic&key=
    Last edited by LouBaker on 16:30:34 - 26/12/21
    • DeKleineKobini [2114440]
    • Role: Committee
    • Level: 100
    • Posts: 3,745
    • Karma: 5,371
    • Last Action: 58 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 19:50:01 - 26/12/21 (2 years ago)
    Post link copied to clipboard Copy post link

    TheFoxMan [1936821]

    Um, my friend told me that the API endpoint doesn't provide the names.

    @Staff, can this be moved into suggestions or should I make a new one ?

    LouBaker [1162207]

    The names can be collected with a second call https://api.torn.com/faction/?selections=basic&key=
    This is not entirely true. People that are no longer in the faction are not included, thus you would be missing names.
    • CRLF [2095076]
    • Role: Civilian
    • Level: 94
    • Posts: 11,752
    • Karma: 37,473
    • Last Action: 1 year
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 03:57:22 - 29/12/21 (2 years ago)
    Post link copied to clipboard Copy post link

    TheFoxMan [1936821]

    Um, my friend told me that the API endpoint doesn't provide the names.

    @Staff, can this be moved into suggestions or should I make a new one ?

    LouBaker [1162207]

    The names can be collected with a second call https://api.torn.com/faction/?selections=basic&key=

    DeKleineKobini [2114440]

    This is not entirely true. People that are no longer in the faction are not included, thus you would be missing names.
    You can get the names by calling user:
    https://api.torn.com/user/12345?selections=&key=apikey

    where 12345 is the userid and apikey is your api key



    You can simplify it further by setting selections = basic

Reply
Thread Title: