Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Adfly API

Downloads Downloads Downloads

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

Download files

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

Source Distribution

adfly-api-1.0.3.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adfly_api-1.0.3-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file adfly-api-1.0.3.tar.gz.

File metadata

  • Download URL: adfly-api-1.0.3.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for adfly-api-1.0.3.tar.gz
Algorithm Hash digest
SHA256 60c79006c633097fdf4d8ae846e10fccc17f8da27e6de4470c378c399abbe339
MD5 9425920fa8ab6962f81d044d84383278
BLAKE2b-256 e5054d9373b1db2ff87cb8157f023194fd53da3e0889b4f032a3cbaac830ed7c

See more details on using hashes here.

File details

Details for the file adfly_api-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: adfly_api-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for adfly_api-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ce1a24250cf7e9e2b2b22f104e26561835f383f181cf0554d04eb6571179664b
MD5 a759968af6fc097d79e7c8465a576819
BLAKE2b-256 19be20ad9c0efd52c2f71259237cce43f8b50c73655ccc8724e628c0845d43a0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 files

1.0.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page