🚧 Stub for config package
This commit is contained in:
parent
1efc8671f5
commit
91bbd0f8e2
5 changed files with 471 additions and 1 deletions
19
trakt/oauth.go
Normal file
19
trakt/oauth.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package trakt
|
||||
|
||||
type OauthDevice struct {
|
||||
DeviceCode string `json:"device_code"`
|
||||
UserCode string `json:"user_code"`
|
||||
VerificationUrl string `json:"verification_url"`
|
||||
ExpiresIn uint16 `json:"expires_in"`
|
||||
CreatedAt uint64 `json:"created_at,omitempty"`
|
||||
Interval uint8
|
||||
}
|
||||
|
||||
type Oauth struct {
|
||||
AccessToken string `json:"access_token"`
|
||||
RefreshToken string `json:"refresh_token"`
|
||||
TokenType string `json:"token_type"`
|
||||
ExpiresIn uint32 `json:"expires_in"`
|
||||
CreatedAt uint64 `json:"created_at"`
|
||||
Scope string
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue