Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jplattel/pymoves
PyMoves
https://github.com/jplattel/pymoves
api moves movesapp python requests
Last synced: 3 days ago
JSON representation
PyMoves
- Host: GitHub
- URL: https://github.com/jplattel/pymoves
- Owner: jplattel
- Created: 2013-07-09T18:39:04.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-10-11T09:59:16.000Z (about 7 years ago)
- Last Synced: 2023-03-16T11:15:34.937Z (over 1 year ago)
- Topics: api, moves, movesapp, python, requests
- Language: Python
- Size: 3.91 KB
- Stars: 54
- Watchers: 12
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# PyMoves, a python library for the Moves App API
## Dependencies
The only dependency of this library is [Requests](http://docs.python-requests.org/en/latest/).
## Example Usage
from moves import Moves
m = Moves()Get a request token URL:
request_url = m.request_url()
Open the Moves app and enter the PIN, then you will be redirected the url specified in for the app. The next step is to use the code to get and access token:
access_token = m.auth(code)
If you have an access token you can make requests like:
m.get_profile(access_token)
This will fetch all user info. Other requests are also build in, but beware of the range requests as they have a limit of 7 days.