Skip to content

Commit

Permalink
Merge pull request #6 from kestutis-stalmokas/master
Browse files Browse the repository at this point in the history
getById is now available for meals endpoint
  • Loading branch information
martinph committed Oct 13, 2015
2 parents 88cc750 + ed7c982 commit 5484c1d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ can be retrieved.
| [HeartRate](endpoints/HeartRate.md) | Yes | Yes | Yes |
| [Height](endpoints/Height.md) | Yes | Yes | Yes |
| [Locations](endpoints/Locations.md) | Yes | Yes | No |
| [Meals](endpoints/Meals.md) | Yes | No | No |
| [Meals](endpoints/Meals.md) | Yes | Yes | No |
| [Profile](endpoints/Profile.md) | Yes | No | No |
| [Sleeps](endpoints/Sleeps.md) | Yes | Yes | Yes |
| [Sources](endpoints/Sources.md) | Yes | No | No |
Expand Down
11 changes: 11 additions & 0 deletions src/HumanApi/Endpoint/Meals.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,15 @@ class Meals extends SimpleEndpoint
* @var bool
*/
protected $listReturnsArray = true;

/**
* {@inheritDoc}
*/
protected function buildSpecificEntryUrl($id)
{
return $this->buildUrlParts(array(
$this->type,
$id,
));
}
}

0 comments on commit 5484c1d

Please sign in to comment.