Skip to main content

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/*

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

appodeal-0.9.3.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

appodeal-0.9.3-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

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

Hashes for appodeal-0.9.3.tar.gz
Algorithm Hash digest
SHA256 d7b3f32c02dfc0de62e04c82c76e026c7864a5845f2e01af786e8e3e556cb086
MD5 ec36eced171979f8c3baccf1d1e9a928
BLAKE2b-256 901356f3c41ee87fa7806b5b438da7d5cfbfbc76b9098cda795acfbfb9b32dbc

See more details on using hashes here.

File details

Details for the file appodeal-0.9.3-py3-none-any.whl.

File metadata

File hashes

Hashes for appodeal-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6673de763019ca4c0a5e68ceadfb613690b4c9352ed2fb679dd6fe24612afd13
MD5 321bd4aa9ee9deeb5954944ed5ba3dcb
BLAKE2b-256 2fa0d077427f17c5d3ad26bd5908da83b1afaffae1b813a01675dda4876c7016

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.9.3 This release

2 files

0.9.2

2 files

0.9.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page