Closed DaviRaubach closed 1 year ago
If you evaluate writefreely-auth-token
, do you see your token as a string, as shown in the README?
I get nil
More context: I am not using write.as. I can get the token:
curl "https://blog.anartist.org/api/auth/login" \
-H "Content-Type: application/json" \
-X POST \
-d '{"alias": "...", "pass": "..."}'
result:
{"code":200,"data":{"access_token":" etc.
I copied the token to my init file:
(use-package ox-gfm)
(use-package writefreely
:after org
:ensure t
;; Authentification token, if wanted.
;; Alternatively (setq writefreely-auth-token "00000000-0000-0000-0000-000000000000")
:config
(setq writefreely-instance-url "https://blog.anartist.org")
(setq writefreely-instance-api-endpoint "https://blog.anartist.org/api")
(setq writefreely-auth-token "mytoken"))
But the error raised when I installed the package: Compilation log:
In toplevel form:
writefreely.el:42:11: Warning: Package cl is deprecated
In writefreely--org-as-md-string:
writefreely.el:128:20: Warning: Unused lexical variable `org-ref-bibliography-entry-format'
In writefreely--get-user-collections:
writefreely.el:160:33: Warning: ‘function*’ is an obsolete alias (as of 27.1); use ‘cl-function’ instead.
writefreely.el:161:60: Warning: Unused lexical variable `&allow-other-keys&rest'
writefreely.el:176:8: Error: Invalid place expression: "token"
And also when I try writefreely-publish-or-update
, I get
internal-macroexpand-for-load: Eager macro-expansion failure: (gv-invalid-place "token")
Let me know if I am doing something stupid.
Thank you
Can you see if #27 fixes your issues?
Yes, it does.
Thank you!
Hello,
I am trying your package and I am getting this:
I would like to solve that and get it to work.
Thank you!
Emacs 29, Macos 10.13.6