intervalsicu

Package Contents

Classes

Activity

dict() -> new empty dictionary

Event

dict() -> new empty dictionary

Intervals

This is the API class that applications interact with.

Wellness

dict() -> new empty dictionary

Folder

dict() -> new empty dictionary

Workout

dict() -> new empty dictionary

class intervalsicu.Activity(**kwargs)

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

class intervalsicu.Event(**kwargs)

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

class intervalsicu.Intervals(athlete_id, api_key, session=None)

This is the API class that applications interact with. Pass your athlete_id and api_key, and then make calls.

activities(self)

Returns all your activities formatted in CSV

Returns

Text data in CSV format

Return type

str

activity(self, activity_id)

Returns an Activity by ID

Parameters

activity_id (int) – Activity id number

Returns

Activity Object

Return type

Activity

events(self, start_date, end_date)

Returns a list of Event objects over a range of dates. A single date will return an object for that day.

Parameters
  • start_date (datetime.date) – Starting date

  • end_date (datetime.date) – End date

Returns

List of Event objects

Return type

[Event]

folders(self)

Retrieve a list of workout folders

Returns

List of Folder objects

Return type

[Folder]

wellness(self, start_date, end_date=None)

Wellness by date, or range of dates. A single date will return a wellness object for that day. Specifying two dates (start and end) will return all wellness objects within the range.

Parameters
  • start_date (datetime.date) – Starting date (or single date)

  • end_date (datetime.date) – End date (or omit if only requesting a single date)

Returns

List of Wellness objects

Return type

[Wellness]

wellness_put(self, wellness)

Update a wellness object.

Parameters

wellness (Wellness) – Wellness object

Returns

The updated Wellness object

Return type

Wellness

workouts(self)

Return a list of all Workout objects

Returns

List of Workout objects

Return type

[Workout]

workout(self, workout_id)

Return a single Workout by ID

Parameters

workout_id (int) – Id of workout

Returns

Workout object

Return type

Workout

class intervalsicu.Wellness(**kwargs)

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

class intervalsicu.Folder(**kwargs)

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

class intervalsicu.Workout(**kwargs)

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)