mithun-dhali-cookifi
Results
3
comments of
mithun-dhali-cookifi
from bitly_api import bitly_api python 3.5 windows +1
I ended up using my own small snippet. Since it was not that complex i avoided using any lib. ``` def shorten(uri): query_params = { 'access_token': settings.BITLY_OAUTH2_TOKEN, 'longUrl': uri }...
@VISWESWARAN1998 [http://docs.python-requests.org/en/master/user/quickstart/#passing-parameters-in-urls](http://docs.python-requests.org/en/master/user/quickstart/#passing-parameters-in-urls) params are automatically escaped/encoded by requests. The solution is functionally correct and we have been using it on our production site. The implementation does require requests. But since...