Catalog PyPI
Back to packageRELEASE DETAILS

1.0.3

PyPI

adfly-api

Unofficial Adfly API wrapper

Published24 Oct 2021
Direct dependencies1
Transitive dependenciesNot calculated

README

Version 1.0.3 documentation

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
httplib2
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.5",
  "evaluation": "NOT_EVALUATED"
}
httplib2runtime

Distribution files

2 collected
adfly_api-1.0.3-py3-none-any.whl

bdist_wheel · 5.74 KB · Python py3

Source file
adfly-api-1.0.3.tar.gz

sdist · 5.57 KB · Python source

Source file

Repository

PENDING
modbender/adfly-api

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:28 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:5f84e6f0c41b422da1c3ba8220d3d69cd666850f00a0e15e7f771f78893bb772

Other collected versions

View all collected versions →