Django views for Appodeal integration
Project description
Django application for Appodeal integration.
Install
Add ‘appodeal’ to INSTALLED_APPS
Add url(r’^/’, include(‘appodeal.urls’)), to urls.py
(optional) Add APPODEAL_SECRET_ANDROID to settings.py
(optional) Add APPODEAL_SECRET_IOS to settings.py
Add APPODEAL_REWARD_CREATE_HANDLER to settings.py
Run python manage.py migrate.
Add the callback URL in Appodeal “{https://example.com/reward/}?data1={data1}&data2={data2}”
Handler
It will be called with:
- output:
A dict with the decrypted data from Appodeal
- rewards:
A appodeal.Reward QuerySet with all the records with the same impression_id.
Should return a string that will be stored as result in the reward record.
If your handler fails the exception representation will be stored as the result.
output example
{
'user_id': user_id,
'amount': amount,
'currency': currency,
'impression_id': impression_id,
'timestamp': timestamp,
'hash': hash,
'output': output
}
Run tests
./runtests.py
Build/Publish
python setup.py sdist bdist_wheel twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file appodeal-0.9.3.tar.gz
.
File metadata
- Download URL: appodeal-0.9.3.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7b3f32c02dfc0de62e04c82c76e026c7864a5845f2e01af786e8e3e556cb086 |
|
MD5 | ec36eced171979f8c3baccf1d1e9a928 |
|
BLAKE2b-256 | 901356f3c41ee87fa7806b5b438da7d5cfbfbc76b9098cda795acfbfb9b32dbc |
File details
Details for the file appodeal-0.9.3-py3-none-any.whl
.
File metadata
- Download URL: appodeal-0.9.3-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6673de763019ca4c0a5e68ceadfb613690b4c9352ed2fb679dd6fe24612afd13 |
|
MD5 | 321bd4aa9ee9deeb5954944ed5ba3dcb |
|
BLAKE2b-256 | 2fa0d077427f17c5d3ad26bd5908da83b1afaffae1b813a01675dda4876c7016 |