How to implement weekly distance ran metric on watchface

Hello,

As I understand it, Garmin has opened up the API to allow developers to query for a distance ran metric to display on watchfaces 

I've been trying for the three days and I'm getting no where.

Here's what I have

// distance ran       
        var useract = UserProfile.getUserActivityHistory();
        var distRanString = "00.0"; // test initialization to know if we step into the next line
        if(useract!=null){
            useract = useract.next();
            if(useract!=null){
                distRanString = useract.distance;
                distRanString = (distRanString * 0.0006213712).toFloat().format("%.1f"); // meters to mi
            }
        }              
        distRanString += "mi";
        var drString = View.findDrawableById("drStringLabel") as Text;
        drString.setText(distRanString);
        
        // outputs 00.0mi in sim and a random five digit number on watch