gopro-plus-0.1.0.0: GoPro Plus Client API.

Copyright(c) Dustin Sallings 2020
LicenseBSD3
Maintainerdustin@spy.net
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

GoPro.Plus.Auth

Description

GoPro Plus authentication.

Synopsis

Documentation

authenticate Source #

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.

Instances
Show AuthResponse Source # 
Instance details

Defined in GoPro.Plus.Auth

Generic AuthResponse Source # 
Instance details

Defined in GoPro.Plus.Auth

Associated Types

type Rep AuthResponse :: Type -> Type #

FromJSON AuthResponse Source # 
Instance details

Defined in GoPro.Plus.Auth

type Rep AuthResponse Source # 
Instance details

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))))