Skip to content

d-ganchar/vap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slava Ukraini Support Ukraine

Python versions Downloads Code size PyPI version Build Status

How to install:

$ pip install vap

How to use:

$ vap verify '{"version": "4.0", "ad-network-id": "com.example", "source-identifier": "39", "app-id": 525463029, "transaction-id": "6aafb7a5-0170-41b5-bbe4-fe71dedf1e31", "redownload": false, "source-domain": "example.com", "fidelity-type": 1, "did-win": true, "coarse-conversion-value": "high", "postback-sequence-index": 0, "attribution-signature": "MEUCIQD4rX6eh38qEhuUKHdap345UbmlzA7KEZ1bhWZuYM8MJwIgMnyiiZe6heabDkGwOaKBYrUXQhKtF3P/ERHqkR/XpuA="}'
# 1
from vap.verifier import verify_postback

postback = {
    'version': '4.0',
    'ad-network-id': 'com.example',
    'source-identifier': '5239',
    'app-id': 525463029,
    'transaction-id': '6aafb7a5-0170-41b5-bbe4-fe71dedf1e30',
    'redownload': False,
    'source-domain': 'example.com',
    'fidelity-type': 1,
    'did-win': True,
    'conversion-value': 63,
    'postback-sequence-index': 0,
    'attribution-signature': 'MEUCIGRmSMrqedNu6uaHyhVcifs118R5z/AB6cvRaKrRRHWRAiEAv96ne3dKQ5kJpbsfk4eYiePmr'
                             'ZUU6sQmo+7zfP/1Bxo=',
}

print(verify_postback(postback)) # True

Supported versions