Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pbrisbin/google-contacts
Google Contacts API client
https://github.com/pbrisbin/google-contacts
Last synced: 10 days ago
JSON representation
Google Contacts API client
- Host: GitHub
- URL: https://github.com/pbrisbin/google-contacts
- Owner: pbrisbin
- License: mit
- Created: 2015-06-07T19:31:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-24T21:06:56.000Z (over 6 years ago)
- Last Synced: 2024-11-09T07:47:29.960Z (2 months ago)
- Language: Haskell
- Homepage:
- Size: 44.9 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Google Contacts
Present here is a (limited) Google Contacts API client library and an executable
that uses that library to query contacts from within [Mutt][].[mutt]: http://www.mutt.org/
## OAuth Setup
- Register a project in Google's [API Console][console]
- Enable the Contacts API for the project
- Create OAuth2 credentials for the project
- Note your Client ID and Secret[console]: https://code.google.com/apis/console#access
## Installation
```
git clone https://github.com/pbrisbin/google-contacts
cd google-contacts
make CLIENT_ID=x CLIENT_SECRET=y
make install
```**NOTE**: This will create `src/Client.hs` with your client credentials.
## Setup
```
gc-config [email protected]
```**NOTE**: This will create `~/.cache/contacts/` for caching OAuth tokens.
## Usage
```
gc-mutt-query [email protected] query
```## Configuring Mutt
```
set query_command = "gc-mutt-query [email protected] '%s'"
```---
[LICENSE](./LICENSE)