| 1 |
Untappd |
| 2 |
------- |
| 3 |
|
| 4 |
App registration |
| 5 |
**************** |
| 6 |
|
| 7 |
https://untappd.com/api/register?register=new |
| 8 |
|
| 9 |
In the app creation form fill in the development callback URL, e.g.:: |
| 10 |
|
| 11 |
http://127.0.0.1:8000/accounts/untappd/login/callback/ |
| 12 |
|
| 13 |
For production, make it your production host, e.g.:: |
| 14 |
|
| 15 |
http://yoursite.com/accounts/untappd/login/callback/ |
| 16 |
|
| 17 |
SocialApp configuration |
| 18 |
*********************** |
| 19 |
|
| 20 |
The configuration values come from your API dashboard on Untappd: |
| 21 |
|
| 22 |
https://untappd.com/api/dashboard |
| 23 |
|
| 24 |
* Provider: "Untappd" |
| 25 |
* Name: "Untappd" |
| 26 |
* Client id: "Client ID" from Untappd |
| 27 |
* Secret key: "Client Secret" from Untappd |
| 28 |
* Sites: choose your site |
| 29 |
|
| 30 |
In addition, you should override your user agent to comply with Untappd's API |
| 31 |
rules, and specify something in the format |
| 32 |
``<platform>:<app ID>:<version string>``. Otherwise, |
| 33 |
you will risk additional rate limiting in your application. |
| 34 |
|
| 35 |
.. code-block:: python |
| 36 |
|
| 37 |
SOCIALACCOUNT_PROVIDERS = { |
| 38 |
'untappd': { |
| 39 |
'USER_AGENT': 'django:myappid:1.0', |
| 40 |
} |
| 41 |
} |