コード例 #1
0
func main() {
	flag.Parse()

	args := flag.Args()

	client := runkeeper.NewClient(args[0])
	activities, err := client.GetFitnessActivityFeed(nil)
	if err != nil {
		log.Fatal(err)
	}
	spew.Dump(activities)

	for _, activity := range activities.Items {
		log.Printf("%#v\n", activity)

		activityDetails, err := client.GetFitnessActivity(activity.Uri, nil)
		if err != nil {
			log.Println(err)
		}
		spew.Dump(activityDetails)
	}
}
コード例 #2
0
func CreateRKClient(token string) RunkeeperCientInt {
	client := runkeeper.NewClient(token)
	return &RkClient{token, client}
}