Skip to content

Commit

Permalink
Merge pull request #8 from iranianpep/master
Browse files Browse the repository at this point in the history
Add ActivitiesSummaries endpoint
  • Loading branch information
martinph authored Aug 3, 2017
2 parents 5484c1d + 6cdc6f6 commit d18bd9c
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 19 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/vendor/
/.idea/
composer.lock
/build

5 changes: 5 additions & 0 deletions docs/endpoints/ActivitiesSummaries.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Activities Summaries

> Get a list of daily activity summaries reported by the data sources.
For more information on the Activities Summaries endpoint see the [official docs](https://reference.humanapi.co/#activity-summaries).
35 changes: 18 additions & 17 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,21 +111,22 @@ an `\Choccybiccy\HumanApi\Endpoint\UnsupportedEndpointMethodException` exception
Here's a complete list of available endpoints that can be queried against, along with the types of data that
can be retrieved.

| Endpoint | getList | getById | getRecent |
|-----------------------------------------------|---------|---------|-----------|
| [Activities](endpoints/Activities.md) | Yes | Yes | Yes |
| [BloodGlucose](endpoints/BloodGlucose.md) | Yes | Yes | Yes |
| [BloodyOxygen](endpoints/BloodOxygen.md) | Yes | Yes | Yes |
| [BloodPressure](endpoints/BloodPressure.md) | Yes | Yes | Yes |
| [BodyFat](endpoints/BodyFat.md) | Yes | Yes | Yes |
| [BodyMassIndex](endpoints/BodyMassIndex.md) | Yes | Yes | Yes |
| [Genetics](endpoints/Genetics.md) | Yes | No | No |
| [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 | Yes | No |
| [Profile](endpoints/Profile.md) | Yes | No | No |
| [Sleeps](endpoints/Sleeps.md) | Yes | Yes | Yes |
| [Sources](endpoints/Sources.md) | Yes | No | No |
| [Weight](endpoints/Weight.md) | Yes | Yes | Yes |
| Endpoint | getList | getById | getRecent |
|---------------------------------------------------------------|---------|---------|-----------|
| [Activities](endpoints/Activities.md) | Yes | Yes | Yes |
| [ActivitiesSummaries](endpoints/ActivitiesSummaries.md) | Yes | Yes | Yes |
| [BloodGlucose](endpoints/BloodGlucose.md) | Yes | Yes | Yes |
| [BloodyOxygen](endpoints/BloodOxygen.md) | Yes | Yes | Yes |
| [BloodPressure](endpoints/BloodPressure.md) | Yes | Yes | Yes |
| [BodyFat](endpoints/BodyFat.md) | Yes | Yes | Yes |
| [BodyMassIndex](endpoints/BodyMassIndex.md) | Yes | Yes | Yes |
| [Genetics](endpoints/Genetics.md) | Yes | No | No |
| [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 | Yes | No |
| [Profile](endpoints/Profile.md) | Yes | No | No |
| [Sleeps](endpoints/Sleeps.md) | Yes | Yes | Yes |
| [Sources](endpoints/Sources.md) | Yes | No | No |
| [Weight](endpoints/Weight.md) | Yes | Yes | Yes |

16 changes: 16 additions & 0 deletions src/HumanApi/Endpoint/ActivitiesSummaries.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Choccybiccy\HumanApi\Endpoint;

/**
* Class ActivitiesSummaries
* @package Choccybiccy\HumanApi\Endpoint
*/
class ActivitiesSummaries extends PeriodicEndpoint
{

/**
* @var string
*/
protected $type = "activities/summaries";
}

0 comments on commit d18bd9c

Please sign in to comment.