You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree that this would be nice to have. It can be done with a with-token macro that binds the token to a dynamic thread-local var. Then the internal paprika.http/api-request function can insert it if one is not provided via the options map.
(paprika.core/with-token"TOKEN";; any code that calls paprika.core functions
(paprika.core/create-post"Yeah!"))
I've mainly avoided this from the start so that I could make sure the API works well with out it. But now that I have an API that I like, it does make sense to add this. Thank you.
It seems like a way to parameterize the token-requiring parts so you can call them with the token as an intrinsic part would be pretty nifty.
The text was updated successfully, but these errors were encountered: