pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/bitly/bitly-api-python/pull/35/files

ttps://github.githubassets.com/assets/primer-primitives-7f694b60439d06c0.css" /> link_encoders_by_count by log10 · Pull Request #35 · bitly/bitly-api-python · GitHub
Skip to content
This repository was archived by the owner on Apr 9, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions bitly_api/bitly_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,13 @@ def link_encoders_count(self, link, **kwargs):
data = self._call(self.host, 'v3/link/encoders_count', params,
**kwargs)
return data['data']


def link_encoders_by_count(self,link,**kwargs):
"""return the ecoders along the click counts"""
params=dict(link=link)
data = self._call(self.host,'v3/link/encoders_by_count',params,**kwargs)
return data['data']

def link_referring_domains(self, link, **kwargs):
"""
returns the domains that are referring traffic to a single bitly link
Expand Down Expand Up @@ -323,9 +329,17 @@ def user_tracking_domain_shorten_counts(self, domain, **kwargs):
"v3/user/tracking_domain_shorten_counts", params, **kwargs)
return data["tracking_domain_shorten_counts"]

def user_info(self, **kwargs):
def user_info(self, login=None,full_name=None,**kwargs):
"""return or update info about a user"""
data = self._call_oauth2("v3/user/info", kwargs)
data=None
if login is not None and full_name is not None:
data = self._call_oauth2_metrics("v3/user/info", dict(login=login,full_name=full_name), **kwargs)
elif login is not None:
data = self._call_oauth2_metrics("v3/user/info", dict(login=login), **kwargs)
elif full_name is not None:
data = self._call_oauth2_metrics("v3/user/info", dict(full_name=full_name), **kwargs)
else:
data = self._call_oauth2_metrics("v3/user/info", dict(), **kwargs)
return data

def user_link_history(self, created_before=None, created_after=None,
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy