Current collected state Current
Observed since 20 Oct, 19:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
adfly-api
Unofficial Adfly API wrapper
Unofficial Adfly API Python Wrapper
pip install adfly-api
#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)
Originally developed by Ben O'Steen
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
httplib2Environment{
"extras": "",
"marker": null,
"requires_python": ">=3.5",
"evaluation": "NOT_EVALUATED"
} | httplib2 | runtime |
bdist_wheel · 5.74 KB · Python py3
sdist · 5.57 KB · Python source
Observed since 20 Oct, 19:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:5f84e6f0c41b422da1c3ba8220d3d69cd666850f00a0e15e7f771f78893bb772