Posts

Showing posts with the label tumblr

One-click Social Media Client

Image
Reddit: Dashboard and details view Twitter: Dashboard and details view Tumblr: Dashboard and details view Youtube: Dashboard and details view   GNU Emacs as a Social Media Client Consumption of social media typically necessitates few repeated actions - like, share, comment and follow. If these actions are assigned to convenient keyboard keys, the consumption becomes easier - no more pointing and clicking tiny icons. Here's an attempt to unify this experience using GNU Emacs, tumblesocks and oauth2.   (require 'tumblesocks) (require 'oauth2)   ;; service below is one of twitter, reddit or tumblr (setq tumblesocks-service-conf    (service . ( client-id secret-key redirect-url ))     Use M-x sm-twitter , M-x sm-reddit , M-x sm-youtube or M-x sm-tumblr . First time, it will open a browser window. You'll need to login to the service and allow the permissions in following window. Then you'll be redirected to a URL. You'll need to copy the code (code= value...

Oauth2 sample flow in Elisp

Image
Here's a modified version of oauth2.el . This Elisp code works for oauth2 flow using Twitter, Gmail, Reddit and Tumblr. To add more services, add the provider URLs to the variable oauth2-service-conf. To make API calls, set the service configuration values (client-id, secret-key and  redirect-url) in the variable t-service-conf. Then use the examples in the usage section. (require 'oauth2)  (setq t-token nil) (setq t-service-conf   '((service . ( client-id secret-key redirect-url ))))   (defun t-api-oauth2-request (url params method service auth-scope                        &optional headers)   (let* ((oauth2-conf (assoc service oauth2-service-conf))      (conf (assoc service t-service-conf))      (t-consumer-key (nth 1 conf))      (t-secret-key (nth 2 conf))      (t-callback-url (nth 3 conf))      ...

Tumblr access from GNU Emacs

Image
Dashboard view (left) and detail view (right) tumblesocks-mode allows you to access Tumblr from GNU Emacs. Best part is - it has pagewise navigation by default instead of endless scroll. Use c for new post, f for follow, l for like and r for reblog. Since the repository is dormant and I needed some customization, I created a fork . It includes some UI changes, fix for emoji display, shorter tumblesocks alias and fix for displaying post at point, like post, reblog post, goto page etc.