From 3639ae8d31d886a643619f9f2723218c83dfe6f0 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Sun, 4 May 2014 12:55:40 -0400 Subject: [PATCH] update sample --- example/main.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/example/main.go b/example/main.go index 3e65d89..cfec091 100644 --- a/example/main.go +++ b/example/main.go @@ -24,13 +24,21 @@ var ( func main() { flag.Parse() - c := marvel.NewClient(*apiKey, *secret) + c := marvel.Client{ + PublicKey: *apiKey, + PrivateKey: *secret, + } offset := 0 limit := 100 imgs := []image.Image{} for { - r, err := c.Series(*seriesID).Comics(marvel.ComicsParams{Offset: offset, Limit: limit}) + r, err := c.SingleSeries(*seriesID).Comics(marvel.ComicsParams{ + CommonParams: marvel.CommonParams{ + Offset: offset, + Limit: limit, + }, + }) if err != nil { panic(err) }