-
Go to [[https://developer.wunderlist.com/apps][My Apps page]]
-
Click on =CREATE APP=
-
Put any URL on =App Url= and =Auth Callback URL=.
-
Click on =SAVE=
-
Record the Client ID and Client secret for setup.
** Retrieving the OAuth token to access your wunderlist from emacs
In order to access wunderlist from emacs, you need to authorize the client and generate an OAuth token.
- Point your browser to https://www.wunderlist.com/oauth/authorize?client_id=APP_CLIENT_ID&redirect_uri=http://localhost/nonexisting_url&state=irrelevant (replace APP_CLIENT_ID with your own value)
- The browser will log you into your wunderlist account, where you have to authorize the request.
- After authorization, you will be redirected with a "code" parameter in the querystring. Use this value to replace the CODE value in the next curl request. All values written in CAPS should be replaced with your own values
: curl -H "Content-Type: application/json" -X POST -d '{"client_id":"APP_CLIENT_ID","client_secret":"APP_CLIENT_SECRET","code":"CODE"}' https://www.wunderlist.com/oauth/access_token
- The response from the curl request is a JSON "access_token" value. This token is your OAuth token, to insert as the =org-wunderlist-token= value in your emacs settings
NB: These steps are generally explained in the [[https://developer.wunderlist.com/documentation/concepts/authorization][Wunderlist API documentation]]
** Setting example
+begin_src elisp
(require 'org-wunderlist)
(setq org-wunderlist-client-id "your-client-id"
org-wunderlist-token "your-token"
org-wunderlist-file "~/.emacs.d/Wunderlist.org"
org-wunderlist-dir "~/.emacs.d/org-wunderlist/")
+end_src
- Usage
=org-wunderlist-fetch=
Fetch Wunderlist tasks and populate =org-wunderlist-dir= locations.
=org-wunderlist-post=
Post/edit org block at point to Wunderlist.
=org-wunderlist-post-all=
Post/edit all tasks to Wunderlist. (this command is unstable)
=org-wunderlist-post-pos=
Edit task order on Org-mode side.
App Url Auth Callback URL