Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akhenakh/httpie-oauth-dm
Dailymotion OAuth2 plugins for httpie
https://github.com/akhenakh/httpie-oauth-dm
Last synced: 24 days ago
JSON representation
Dailymotion OAuth2 plugins for httpie
- Host: GitHub
- URL: https://github.com/akhenakh/httpie-oauth-dm
- Owner: akhenakh
- License: mit
- Created: 2013-09-30T16:05:29.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-30T16:33:12.000Z (about 11 years ago)
- Last Synced: 2023-03-16T13:05:20.429Z (over 1 year ago)
- Language: Python
- Size: 137 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
httpie-oauth-dm
===============Dailymotion OAuth2 plugins for [httpie](https://github.com/jkbr/httpie)
```bash
$ pip install git+http://github.com/akhenakh/httpie-oauth-dm.git?#egg=httpie_oauth_dm
```
Usage
-----
```bash
$ export API_KEY=myapikey
$ export API_SECRET=myapisecret
$ http --auth-type=oauth2DM --auth=client-key:client-secret GET https://api.dailymotion.com/me
```
You can also use HTTPie sessions.
```bash
# Create session
$ http --session=dm --auth-type=oauth2DM --auth=client-key:client-secret GET https://api.dailymotion.com/me
# Re-use auth
$ http --session=dm GET https://api.dailymotion.com/me
```TODO
----
httpie oauth plugins API does not permit yet to deal with token refresh