DjAppodeal
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/*
Metadata
Release files for appodeal 0.9.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| appodeal-0.9.3.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| appodeal-0.9.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.4 kB
Release files / appodeal-0.9.3.tar.gz
| Download URL | appodeal-0.9.3.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7b3f32c02dfc0de62e04c82c76e026c7864a5845f2e01af786e8e3e556cb086
|
|
BLAKE2b-256 checksum How to use checksums |
901356f3c41ee87fa7806b5b438da7d5cfbfbc76b9098cda795acfbfb9b32dbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / appodeal-0.9.3-py3-none-any.whl
| Download URL | appodeal-0.9.3-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6673de763019ca4c0a5e68ceadfb613690b4c9352ed2fb679dd6fe24612afd13
|
|
BLAKE2b-256 checksum How to use checksums |
2fa0d077427f17c5d3ad26bd5908da83b1afaffae1b813a01675dda4876c7016
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |