Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/markus1189/hocket
Hocket the Haskell pocket client
https://github.com/markus1189/hocket
Last synced: 20 days ago
JSON representation
Hocket the Haskell pocket client
- Host: GitHub
- URL: https://github.com/markus1189/hocket
- Owner: markus1189
- License: bsd-3-clause
- Created: 2014-12-21T09:33:14.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-04-13T03:32:09.000Z (7 months ago)
- Last Synced: 2024-04-14T02:21:22.516Z (7 months ago)
- Language: Haskell
- Size: 628 KB
- Stars: 2
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hocket #
Hocket - The Haskell [pocket](http://getpocket.com/) client
[![Build Status](https://travis-ci.org/markus1189/hocket.png?branch=master)](https://travis-ci.org/markus1189/hocket)
## About ##
Hocket is a minimalistic [pocket](http://getpocket.com/) client that
works on the commandline (using
[vty-ui](http://jtdaugherty.github.com/vty-ui/)) written in Haskell.It's minimalistic in the sense that it matches my personal workflow
with pocket, currently supported features:- view unread pocket items
- archive items (mark as read)
- rename items## Installation ##
Hocket can be installed using `nix`.
## Authentication ##
Hocket requires a `config.dhall` file to authenticate you. Example:
```
{
consumerKey = "xxxxx-xxxxxxxxxxxxxxxxxxxxxxxx",
accessToken = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxx"
}
```## How to get a consumer key and access token ##
NOTE: this is a little rough currently, because it has to be done only
once (and currently I am the only user). Ideally this should be added
to `hocket` so that the user does not have to do the steps manually,
if you think so too, prs welcome!1. Get a consumer key from http://getpocket.com/developer/apps/new
2.
```
curl --data-urlencode consumer_key=YOUR_CONSUMER_KEY --data-urlencode redirect_uri=https://github.com/markus1189/hocket https://getpocket.com/v3/oauth/request`
```
to get a request token
3. Go to
https://getpocket.com/auth/authorize?request_token=YOUR_REQUEST_TOKEN&redirect_uri=https://github.com/markus1189/hocket
4. Finally, get the access_token:
```
curl --data-urlencode consumer_key='YOUR_CONSUMER_KEY' --data-urlencode code='YOUR_REQUEST_TOKEN' https://getpocket.com/v3/oauth/authorize
```5. Fill in `consumer_key` and `access_token` into hour `hocket.cfg`
## Is it done? ##
No ;). As said above it is fairly minimalistic to fit my workflow,
nevertheless contributions are welcome!