These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

[Answered ] Crest API - Skill primary and secondary attributes

Author
Som Boty
Super Mother Fan Club
#1 - 2016-07-25 00:56:01 UTC  |  Edited by: Som Boty
I am playing with crest for the first time. I've been trying to avoid using the SDE, is there a way to get which character attribute is the primary and secondary attributes for a particular skill from Crest?

ie, if I want to see how many SP I am earning an hour, I would look up the skill:

https://crest-tq.eveonline.com/inventory/types/3411/

then get the character attributes from the XML API:

/char/CharacterSheet.xml.aspx

but the Crest Item endpoint returns a dogma reference for the primary and secondary attributes (respectively):

https://crest-tq.eveonline.com/dogma/attributes/180/
and
https://crest-tq.eveonline.com/dogma/attributes/181/

which only tells you the name of the attribute (primary or secondary attribute) not the value for that particular skill.

Is there a way to get this using crest?
Blacksmoke16
Imperial Academy
#2 - 2016-07-25 01:08:15 UTC
Yes.

{
"attribute": {
"id_str": "180",
"href": "https://crest-tq.eveonline.com/dogma/attributes/180/",
"id": 180,
"name": "primaryAttribute"
},
"value": 165
},
{
"attribute": {
"id_str": "181",
"href": "https://crest-tq.eveonline.com/dogma/attributes/181/",
"id": 181,
"name": "secondaryAttribute"
},
"value": 166
}


If you look at the primary and secondary attribute dogma objects, notice the "value" at the bottom. In this case it is 165 and 166

You can use these dogma values to lookup what dogma attribute those are. Ex.

https://crest-tq.eveonline.com/dogma/attributes/165/ which would return:

{
"description": "The intelligence of a character.",
"unitID_str": "120",
"displayName": "Intelligence",
"name": "intelligence",
"iconID": 1380,
"unitID": 120,
"iconID_str": "1380",
"id": 165,
"id_str": "165",
"highIsGood": true,
"stackable": true,
"defaultValue": 0,
"published": true
}


Thus meaning value 165 relates the the Intelligence attribute.
Som Boty
Super Mother Fan Club
#3 - 2016-07-25 01:11:52 UTC
you are the coolest guy in all of eve right now. thank you very much!