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

Metadata

Release files for adfly-api 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adfly-api 1.0.3
File Size Uploaded Provenance
adfly-api-1.0.3.tar.gz 5.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for adfly-api 1.0.3
File Interpreter ABI Platform
adfly_api-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 11.6 kB

Release files / adfly-api-1.0.3.tar.gz

Download URL adfly-api-1.0.3.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
60c79006c633097fdf4d8ae846e10fccc17f8da27e6de4470c378c399abbe339
BLAKE2b-256 checksum
How to use checksums
e5054d9373b1db2ff87cb8157f023194fd53da3e0889b4f032a3cbaac830ed7c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / adfly_api-1.0.3-py3-none-any.whl

Download URL adfly_api-1.0.3-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce1a24250cf7e9e2b2b22f104e26561835f383f181cf0554d04eb6571179664b
BLAKE2b-256 checksum
How to use checksums
19be20ad9c0efd52c2f71259237cce43f8b50c73655ccc8724e628c0845d43a0
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for adfly-api 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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