aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/client.go b/client.go
index e381c5f..238c340 100644
--- a/client.go
+++ b/client.go
@@ -19,6 +19,7 @@ type Client struct {
Dir Directory
nonce chan string
Links Links
+ Next string
}
// NewClient fetches directory and initializes nonce
@@ -145,6 +146,7 @@ func (c *Client) Register(a *Account) error {
defer aresp.Body.Close()
err = json.NewDecoder(aresp.Body).Decode(&re)
log.Println(re)
+ c.Next = c.Links["next"]
return err
}