TBD
Just add it to your rebar.config deps:
{deps, [
...
{loauth, ".*",
{git, "[email protected]:YOURNAME/loauth.git", "master"}}
]}.And then do the usual:
$ rebar get-deps
$ rebar compileCurrently, only command-line usage (grant_type=password) is supported.
From the REPL:
> (loauth:start)(#(inets ok) #(ssl ok) #(lhttpc ok))> (slurp "src/loauth.lfe")#(ok loauth)> (set state
(make-loauth-data
token-uri "https://www.inaturalist.org/oauth/token"
client-id your-client-id
client-secret your-client-secret))#(loauth-data undefined
"https://www.inaturalist.org/oauth/token"
...)> (set token (loauth:get-token your-username your-password state))"2a58b2761cba0823c85f62ebd34b8f80e5c55cc342d287520fc3464acaa0c0d1"