· 7 years ago · Sep 20, 2018, 06:18 AM
1--
2-- Would you belive there was no way to create a token other than to do the full
3-- authentication process in hoauth? This just creates value of type 'Token' for
4-- this package from some strings.
5--
6createToken :: T.Consumer -> OAuthTokenAndSecret -> O.Token
7createToken c (OAuthTokenAndSecret token secret) = AccessToken app tokFields
8 where
9 app = Application (T.key c) (T.secret c) OOB
10 tokFields = R.fromList [ ("oauth_token", token), ("oauth_token_secret", secret) ]