Skip to main content

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


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.2.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

appodeal-0.9.2-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file appodeal-0.9.2.tar.gz.

File metadata

  • Download URL: appodeal-0.9.2.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for appodeal-0.9.2.tar.gz
Algorithm Hash digest
SHA256 023b353d7ca6bf1314ef3a8d4189d464c16a3b1e919b327f5cd14ab5b5f1a505
MD5 a1216d8b899f5cfe4d9eda3515fe6820
BLAKE2b-256 1ca3f80202e08b20e224d867c5943f06d4a01cf5e18e0978d9ed8812edc799ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for appodeal-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7805001b75c19193da1212c432adbbf05e0ced22bf8c2dd39f1a58f5fe801348
MD5 85547a224bc89d5ac7dfb3186c92d05e
BLAKE2b-256 7ca5fffbf50fb530523cfc0fc103df2e75f813958961ef0906499e125d142f37

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page