pyrebrandly API¶
Request¶
Exceptions¶
API endpoint under maintenance
Code: 503
-
exception
pyrebrandly.exceptions.
BadGatewayError
[source]¶ Failure in Rebrandly’s upstream providers
Code: 502
-
exception
pyrebrandly.exceptions.
InvalidFormatError
[source]¶ Invalid input format
Missing body
Limits threshold reached
Code: 403
-
exception
pyrebrandly.exceptions.
InvalidOptionsError
(*, possible=None, invalid=None)[source]¶ Invalid Options in Options dict()
:exception InvalidOptionsError
-
exception
pyrebrandly.exceptions.
NotAuthorizedError
[source]¶ Authorization credentials invalid
oAuth Token expired etc.
Code: 401
Installation¶
Installing via source¶
If you want to install via source, you have to download the source.
- Git
- GitHub -
git clone https://github.com/ElectroCode/pyrebrandly
GitLab -git clone https://gitlab.com/ElectroCode/pyrebrandly
- PyPi
pip3 download pyrebrandly
pip3 install pyrebrandly -d <dir>
- ‘Downloads package into <dir> instead of installing, regardless of what’s already installed’You will want to run the following to get the dependencies for :bold:`pyrebrandly`With Sudo -sudo pip3 install -r requirements.txt
User Install -pip3 install -r requirements.txt --user
Using¶
Using pyrebrandly
is pretty easy, its just like any other library, although to start off, you have to set your account information for the library to use.
import pyrebrandly
client = pyrebrandly.Client(key='xxxxxxxx', id='xxxxxxxxx', )
About¶
I made pyrebrandly and its cousin rebrandlyrb out of wanting to make it easier to use the Rebrandly API.
Donations¶
pyrebrandly was brought to you through my own want, although if you do like it, and think it deserves it, I would very much appreciate a donation.
Donation Link: paypal.me/ElectroCode
Welcome to pyrebrandly’s documentation!¶
pyrebrandly is a python package used to access rebrandly.com’s API.