Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/utgwkk/croudia4python
A Croudia's API Wrapper for Python 3.x
https://github.com/utgwkk/croudia4python
Last synced: about 1 month ago
JSON representation
A Croudia's API Wrapper for Python 3.x
- Host: GitHub
- URL: https://github.com/utgwkk/croudia4python
- Owner: utgwkk
- License: mit
- Created: 2015-09-01T07:17:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-06T09:55:38.000Z (over 9 years ago)
- Last Synced: 2024-10-29T06:40:42.023Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 145 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Croudia4Python
A Croudia's API Wrapper for Python 3.x## Requirements
- [requests](http://requests-docs-ja.readthedocs.org/en/latest/)
- [requests_oauthlib](https://github.com/requests/requests-oauthlib)## How to use
### Initialization
```python
# import this.
import croudiaCONSUMER_KEY = 'set your consumer key'
CONSUMER_SECRET = 'set your consumer secret'# create your API wrapper
api = croudia.API(CONSUMER_KEY, CONSUMER_SECRET)# get authorization url to get access token
url = api.get_authorization_url()
print("Please access to ", url)# then, get your access token with the code you have got
api.request_access_token(code=input('code : '))
```