When am getting some entity using API, it's returning id reference only not the actual value.
eg: $result = civicrm_api3('Address', 'get', array( 'sequential' => 1, 'conatct_id' => 10 )); Output:
enter preformatted text here
{
"is_error":0,
"version":3,
"count":1,
"id":6601,
"values":[{
"id":"6601",
"contact_id":"1",
"location_type_id":"1",
"is_primary":"1",
"is_billing":"0",
"street_address":"#275, xyz",
"city":"abcd",
"state_province_id":"9300",
"postal_code":"560082",
"country_id":"1101",
"geo_code_1":"12.7930129",
"geo_code_2":"77.5051501",
"manual_geo_code":"0"
}]
}
In this example, state_province_id,country_id is returned. Is it possible to get state name and country name in the result?
Thanks in advance