Skip to content

lordent/hasoffers-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hasoffers_api: Async HasOffers . Network API driver

travis

HasOffers HTTP Network API Documentation

Full documentation is available at https://developers.tune.com/network/ .

Usage

Request collection of objects example

async for results in api.Offer.findAll({
    'filters': {
        'status': 'active',
    },
    'contain': [
        'Goal',
        'Country',
    ],
    'limit': 100, # Set `limit` value for paging results
}, auto_retry=True): # Use `auto_retry` for continue or API usage rate limit
    for res in results.values():
        print(res['Offer']['name'])
        if res['Goal']:
            print(len(res['Goal']))

Request one object or call method

affiliate = await api.Affiliate.findById({'id': 1})

Requirements

  • Python >= 3.6

Test

$ tox

Releases

No releases published

Packages

No packages published

Languages