From bc3617c26abcd88fee550360ade3429d2de47133 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 28 Nov 2015 19:14:15 +0100 Subject: Add next link parser --- messages.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'messages.go') diff --git a/messages.go b/messages.go index 511c713..26e4f2b 100644 --- a/messages.go +++ b/messages.go @@ -41,9 +41,14 @@ type Key struct { N string `json:"n"` } -// Authorization Objects +// Authorization request type Authorization struct { - Resource string `json:"resource"` + Resource string `json:"resource"` + Identifier Identifier `json:"identifier"` +} + +// AuthorizationResp Objects +type AuthorizationResp struct { Identifier Identifier `json:"identifier"` Status string `json:"status,omitemtpy"` // valid Expires string `json:"expires,omitempty"` // 2006-01-02 -- cgit v1.2.3