Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

Release History

This version
History Node

0.9.3

History Node

0.9.2

History Node

0.9.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
appodeal-0.9.3-py3-none-any.whl (9.5 kB) Copy SHA256 Checksum SHA256 py3 Wheel Oct 11, 2017
appodeal-0.9.3.tar.gz (5.8 kB) Copy SHA256 Checksum SHA256 Source Oct 11, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting