API documentation

Account Class Reference

Description

Renders an account.

Protected Member Functions

 _render ($account)
 Renders an account. More...
 

Member Function Documentation

_render (   $account)
protected

Renders an account.

{
"id": 42,
"entityType": "Accounts",
"rev": "1",
"name": "Vishay Intertechnology",
"description": "Closed Mondays",
"htmlUrl": "https://app01.nutshell.com/account/1234", // a url to open with a web browser for this entity
"tags": ["Some tag", "Some other tag"],
"industry": Industry,
"accountType": {
"id": 1,
"name": "Customer"
}
"creator": {
"stub": true,
"id": 3,
"entityType": "Users",
"rev": "1",
"name": "Chris Dzombak"
},
"leads": [ Lead, ... ],
"contacts": [ Contact, ... ],
"phone": {
"home": {
"countryCode": "1",
"number": "995-505-7619",
"extension": null
},
"--primary": {
"countryCode": "1",
"number": "995-505-7619",
"extension": null
}
},
"url": {
"0": "http://example.com",
"mail": "https://mail.example.com"
},
"email": {
"0": "jhalpert@nutshell.com",
"assistant": "dschrute@dunder-mifflin.com"
},
"avatar": {
"url": "/image/230/default/default/account-avatar-1.png"
},
"territory": {
"id": 1,
"name": "Michigan"
},
"lastContactedDate": null, // ATOM/rfc3339 format. Returns null if the value is empty.
"deletedTime": "2010-09-28T13:30:00+0000", // ATOM/rfc3339 format. Only present when deleted.
"modifiedTime": "2010-04-26T15:25:10+0000", // ATOM/rfc3339 format. If modified_time is blank the created_time value is returned in its place.
"createdTime": "2010-04-26T15:25:10+0000", // ATOM/rfc3339 format.
}
Returns
array