Assists

Post Reply
Blizznick80
Posts: 3
Joined: 06 Aug 2023 09:13
Country: Sweden

Assists

Post by Blizznick80 »

Hi!

I assisted a takeover and then made a request to https://api.turfgame.com/v4/feeds but there was no post on my assist. How do I get assist information? How do you, DIProgan, calculate Daily RIP for turfbridge when this data is not present in the api responses?
Moru
Posts: 138
Joined: 26 May 2020 18:37
Country: Sweden
Contact:

Re: Assists

Post by Moru »

Try the unstable instead, has some more info I believe:

https://api.turfgame.com/unstable
Turfname is EQ
embeoo
Zonemaker
Posts: 822
Joined: 30 Jul 2012 00:50
Country: Sweden
Location: SoDa

Re: Assists

Post by embeoo »

Yes, it is the v5 api which has the new features for the past 6-8 years. https://api.turfgame.com/unstable But the endpoint is still /unstable ;)
Moru
Posts: 138
Joined: 26 May 2020 18:37
Country: Sweden
Contact:

Re: Assists

Post by Moru »

Just ignore the unstable part, I have been using it for a few years just fine :-)

BTW, the link is at the bottom of the v4 documentation, that's how I found it.
Turfname is EQ
hacker_112
Posts: 9
Joined: 27 Apr 2013 17:17
Country: Sweden

Re: Assists

Post by hacker_112 »

The v5 seems a bit too unstable while v4 works fine for me.

https://api.turfgame.com/v4/feeds
Works fine!

https://api.turfgame.com/v5/feeds
Gives me a "<turf/>" or Status(406) error if I try to ask for JSON.

<!doctype html><html lang="en"><head><title>HTTP Status 406 – Not Acceptable</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 406 – Not Acceptable</h1></body></html> Error: Status(406); <!doctype html><html lang="en"><head><title>HTTP Status 406 – Not Acceptable</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 406 – Not Acceptable</h1></body></html>

How have you got it to work? Any special headers you are sending or something?

Best regards,
David, developer of T.R.U.F: https://truf.davidg.nu
Moru
Posts: 138
Joined: 26 May 2020 18:37
Country: Sweden
Contact:

Re: Assists

Post by Moru »

Turfname is EQ
hacker_112
Posts: 9
Joined: 27 Apr 2013 17:17
Country: Sweden

Re: Assists

Post by hacker_112 »

Ah! That was very unclear from all the links on the page pointing to /v5 . Thanks for the help!
Post Reply

Return to “Third-party”