| Copyright | (c) Dustin Sallings 2020 |
|---|---|
| License | BSD3 |
| Maintainer | dustin@spy.net |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
GoPro.Plus.Auth
Description
GoPro Plus authentication.
Synopsis
- authenticate :: MonadIO m => String -> String -> m AuthResponse
- refreshAuth :: MonadIO m => AuthResponse -> m AuthResponse
- data AuthResponse = AuthResponse {}
- access_token :: Lens' AuthResponse String
- expires_in :: Lens' AuthResponse Int
- refresh_token :: Lens' AuthResponse String
- resource_owner_id :: Lens' AuthResponse String
Documentation
Arguments
| :: MonadIO m | |
| => String | Email/username |
| -> String | Password |
| -> m AuthResponse |
refreshAuth :: MonadIO m => AuthResponse -> m AuthResponse Source #
Refresh authentication credentials using a refresh token.
data AuthResponse Source #
An Authentication response.
Constructors
| AuthResponse | |
Fields | |
Instances
| Show AuthResponse Source # | |
Defined in GoPro.Plus.Auth Methods showsPrec :: Int -> AuthResponse -> ShowS # show :: AuthResponse -> String # showList :: [AuthResponse] -> ShowS # | |
| Generic AuthResponse Source # | |
Defined in GoPro.Plus.Auth Associated Types type Rep AuthResponse :: Type -> Type # | |
| FromJSON AuthResponse Source # | |
Defined in GoPro.Plus.Auth | |
| type Rep AuthResponse Source # | |
Defined in GoPro.Plus.Auth type Rep AuthResponse = D1 (MetaData "AuthResponse" "GoPro.Plus.Auth" "gopro-plus-0.1.0.0-9fVWhLzJdYqAyZLvDbL4sd" False) (C1 (MetaCons "AuthResponse" PrefixI True) ((S1 (MetaSel (Just "_access_token") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String) :*: S1 (MetaSel (Just "_expires_in") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) :*: (S1 (MetaSel (Just "_refresh_token") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String) :*: S1 (MetaSel (Just "_resource_owner_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String)))) | |