adfly-api 1.0.3

Creator: codyrutscher

Last updated:

0 purchases

adfly-api 1.0.3 Image
adfly-api 1.0.3 Images

Languages

Categories

Add to Cart

Description:

adflyapi 1.0.3

Adfly API



Unofficial Adfly API Python Wrapper
Installation
pip install adfly-api
Examples
#Import
from adfly import AdflyApi

#Initialize
api = AdflyApi(
user_id=12345678,
public_key='xxxxxxxxxx',
secret_key='xxxxxxxxxx',
)

# Url Groups examples.
api.get_groups()

# Expand examples.
api.expand(
['http://adf.ly/D', 'http://adf.ly/E', 'http://q.gs/4'],
[3, '1A', '1C'])
api.expand(None, '1F')

# Shorten examples.
api.shorten([
'http://docs.python.org/library/json.html',
'https://github.com/benosteen'],
)
api.shorten('http://docs.python.org/library/json.html')

# Urls examples.
api.get_urls()
api.get_urls(search_str='htmlbook')
api.update_url(136, advert_type='int', group_id=None)
api.update_url(136, title='一些中国', fb_description='fb о+писан и+е', fb_image='123')
api.delete_url(136)

Credits
Originally developed by Ben O'Steen

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.