def update_activity_goals(period, params)
      unless period && %w(daily weekly).include?(period)
        raise FitgemOauth2::InvalidArgumentError, "Goal period should either be 'daily' or 'weekly'"
      end
      post_call("user/#{user_id}/activities/goals/#{period}.json", params)
    end
def update_activity_goals(period, params)
      unless period && %w(daily weekly).include?(period)
        raise FitgemOauth2::InvalidArgumentError, "Goal period should either be 'daily' or 'weekly'"
      end
      post_call("user/#{user_id}/activities/goals/#{period}.json", params)
    end
update activity goals
 @param period period for the goal ('weekly' or 'daily')
 @param params the POST params for the request. Refer to Fitbit documentation for accepted format