Get Stats (Indirect)

Description

Retrieve driver's stats.

URI

/ws/game/nfsw/driver/<driverName>/stats

URI Parameters  | Input Parameters  | Output  | Examples  | Error Codes

URI Parameters

Field Type Required? Format Description
gameName string Required

 

Game name.

driverName string Required

 

Driver name.

Input Parameters

FieldType Required? Example Description
output

string

Optional

xml

Format of response, either json or xml. The default format is xml.

shard

string

Optional

Apex

Retrieve information from a specific shard. The default is the configured default shard in server configuration.

Output

Field Type Detail
WorldStats

 

WorldStats object.

Examples

Request
uri

/ws/game/nfsw/driver/DATA0001F/stats?shard=Apex

Response
status code

200

condition

Success

payload
<?xml version="1.0" encoding="UTF-8"?>
<worldStats>
  <eventStats>
    <worldEventStats totalRacesWon="0" totalRacesLost="0" singlePlayerRacesWon="0"
    singlePlayerRacesLost="0" multiPlayerRacesWon="0" multiPlayerRacesLost="0" multiPlayerDnfCount="0"
    singlePlayerTotalPlacing="0" multiPlayerTotalPlacing="0"
    />
  </eventStats>
  <skillsStats>
    <worldSkillsStats raceSkillPoints="0" exploreSkillPoints="0" pursuitSkillPoints="0"/>
  </skillsStats>
  <streaksStats>
    <worldStreaksStats bestSinglePlayerWinStreak="0" currentSinglePlayerWinStreak="0"
    bestMultiPlayerWinStreak="0" currentMultiPlayerWinStreak="0"/>
  </streaksStats>
</worldStats>

Error Codes

Status Code Field Description Payload

409 

driverNamer

Driver name is not valid.
<webServiceErrorResponse statusCode="409">
	<errorCode>DRIVERNAME_NO_MATCH</errorCode>
</webServiceErrorResponse>