labpack/activity/moves.py
def list_activities(self):

        ''' a method to retrieve the details for all activities currently supported

        :return: dictionary of response details with activities list inside json key

         {
            'headers': { ... },
            'code': 200,
            'error': '',
            'url': 'https://api.moves-app.com/api/1.1/activities'
            'json': [
                {
                    "activity": "aerobics",
                    "geo": false,
                    "place": true,
                    "color": "bc4fff",
                    "units": "duration,calories"
                },
                ...
            ]
        }
        '''

        title = '%s.list_activities' % self.__class__.__name__

    # construct request parameters
        url_string = '%s/activities' % self.endpoint

    # send request
        response_details = self._get_request(url_string)

        return response_details
 a method to retrieve the details for all activities currently supported

        :return: dictionary of response details with activities list inside json key

         {
            'headers': { ... },
            'code': 200,
            'error': '',
            'url': 'https://api.moves-app.com/api/1.1/activities'
            'json': [
                {
                    "activity": "aerobics",
                    "geo": false,
                    "place": true,
                    "color": "bc4fff",
                    "units": "duration,calories"
                },
                ...
            ]
        }
        
a method to retrieve the details for all activities currently supported
a method to retrieve the details for all activities currently supported
def list_activities(self):
        title = '%s.list_activities' % self.__class__.__name__
        url_string = '%s/activities' % self.endpoint
        response_details = self._get_request(url_string)
        return response_details
def list_activities ( self ) : title = '%s.list_activities' % self . __class__ . __name__ url_string = '%s/activities' % self . endpoint response_details = self . _get_request ( url_string ) return response_details
a method to retrieve the details for all activities currently supported
a method to retrieve the details for all activities currently supported
''' a method to retrieve the details for all activities currently supported

        :return: dictionary of response details with activities list inside json key

         {
            'headers': { ... },
            'code': 200,
            'error': '',
            'url': 'https://api.moves-app.com/api/1.1/activities'
            'json': [
                {
                    "activity": "aerobics",
                    "geo": false,
                    "place": true,
                    "color": "bc4fff",
                    "units": "duration,calories"
                },
                ...
            ]
        }
        ''' # construct request parameters
 # send request

dictionary of response details with activities list inside json key
{
'headers': { ...
dictionary of response details with activities list inside json key { ' headers ' : { ...
self