Google+
We obtains users activities (i.e. news feeds) using Google+ API.
google-api-python-client library allows to simplify using the api in Python app.
pip install --upgrade google-api-python-client
See more: Google python api
Next steps are necessary to activate api for the app:
- Google+ API activation, see
- Generating API key, see more . Unique key that you generate using the Console will be enough for our purposes (navigate to Google developer Console and select API Access tab).
It is easy to understand how api can be used by seeing following examples:
Here You can find what exactly data are contained in API response:
We store GOOGLE_PLUS_API_KEY in settings/google_plus.py on development machine and in environment variable on heroku server.
Social services integration¶
Google+¶
We obtains users activities (i.e. news feeds) using Google+ API. google-api-python-client library allows to simplify using the api in Python app.
See more: Google python api
Next steps are necessary to activate api for the app:
It is easy to understand how api can be used by seeing following examples:
Here You can find what exactly data are contained in API response:
We store GOOGLE_PLUS_API_KEY in settings/google_plus.py on development machine and in environment variable on heroku server.
Twitter¶
Set up new app at https://dev.twitter.com/apps/new
Copy twitter.sample.py to twitter.py. Add your credentials.
Click “Create Access Token” and save them in settings too.