<commit_before>## Implemented Marketo Endpoints

### Lead

#### lead.byId(id, options)

Implements [Get Lead by Id](http://developers.marketo.com/documentation/rest/get-lead-by-id/)

param | type | description
------|------|------------
`id`  | int | the lead id to query for
`options` | object | `fields`: a comma separated list or array of fields to retrieve

```js
marketo.lead.byId(3)
  .then(function(data) {
    console.log(data);
  })

// Using the field attribute
marketo.lead.byId(3, ['email', 'lastName'])<commit_msg>Update doc to correct format of options<commit_after>## Implemented Marketo Endpoints

### Lead

#### lead.byId(id, options)

Implements [Get Lead by Id](http://developers.marketo.com/documentation/rest/get-lead-by-id/)

param | type | description
------|------|------------
`id`  | int | the lead id to query for
`options` | object | `fields`: a comma separated list or array of fields to retrieve

```js
marketo.lead.byId(3)
  .then(function(data) {
    console.log(data);
  })

// Using the field attribute
marketo.lead.byId(3, {fields: ['email', 'lastName']})
{'fraction_non_alphanumeric': 0.19174311926605506, 'fraction_numerical': 0.003669724770642202, 'mean_word_length': 3.5082644628099175, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7398207', 'n_tokens_mistral': 367, 'n_tokens_neox': 350, 'n_words': 100}