Results 1 to 4 of 4
  1. #1

    Broken response from BFH and BF4 stats

    Hello all, i tried to send a get request to the following end-points

    http://api.bfhstats.com/api/playerRa...pc&name=1ApRiL

    http://api.bf4stats.com/api/playerRa...pc&name=1ApRiL

    The following were the responses:
    Code:
    "{"player":{"id":173521680,"game":"bf4","plat":"pc","name":"1ApRiL","tag":"BF4S","dateCheck":1477806173495,"dateUpdate":1457388062911,"dateCreate":1405875851289,"dateStreak":1457388062911,"lastDay":"20151221","country":"DE","countryName":"Germany","rank":{"nr":108,"imgLarge":"bf4/ranks/r108.png","img":"r108","name":"Colonel IX","needed":10000000,"next":{"nr":109,"imgLarge":"bf4/ranks/r109.png","img":"r109","name":"Colonel X","needed":10200000,"curr":10123100,"relNeeded":200000,"relCurr":12...
    Code:
    "{"rankings":[{"group":"player","ident":"score","pid":173521680,"rank":null,"count":22472,"value":null,"url":null,"label":"Score","short":"Score","format":"nf"},{"group":"player","ident":"streak","pid":173521680,"rank":null,"count":18196,"value":null,"url":null,"label":"Playing days streak","short":"Days streak","format":"nf"},{"group":"player","ident":"kdr","pid":173521680,"rank":null,"count":12336,"value":null,"url":null,"label":"Kill / Death ratio","short":"KDr","format":"kdcol:3"},{"gr...
    Am i doing something wrong?.
    Are the responses the way they should be?

  2. #2
    Administrator 1ApRiL's Avatar
    Join Date
    2011-02-12
    Location
    Waiblingen, Germany
    Posts
    1,516
    BFBC2 PC
    1ApRiL
    NFS World
    1APRIL
    BF2
    1ApRiL
    BF3 PC
    1ApRiL

    Re: Broken response from BFH and BF4 stats

    Hi, for me the responses are OK when I open the endpoints with Chrome.
    What exactly is wrong?

    Your first response looks like the beginning of a playerInfo response and the second like the beginning of a playerRankings response.
    Admin of bfhstats.com / bf4stats.com / bf3stats.com | Twitter

  3. #3

    Re: Broken response from BFH and BF4 stats

    Yes, those are the requests made, but the responses are usually incomplete.

  4. #4

    Re: Broken response from BFH and BF4 stats

    Quote Originally Posted by 1ApRiL View Post
    Hi, for me the responses are OK when I open the endpoints with Chrome.
    What exactly is wrong?

    Your first response looks like the beginning of a playerInfo response and the second like the beginning of a playerRankings response.
    Thanks, i have got it figured... My request was not has fortified as it should be.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
P-STATS NETWORK FORUM LOGIN CREATE ACCOUNT