Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Cut the long link via Bit.Ly service 

src/b/i/bitlyclient-library-1.0.0/examples.py   BitLyClient-Library(Download)
def example1():
    try:
        BitLy = BitLyClient(user, api, long_url)
        BitLy.cut()
        print BitLy.ShortUrl
def example2():
    try:
        BitLy = BitLyClient(user, api)
        BitLy.cut(long_url)
        print BitLy.ShortUrl
def example3():
    try:
        BitLy = BitLyClient(user, api, long_url)
        BitList = BitLy.cut(flag = True)
        print BitList["ShortUrl"]
def example3():
    try:
        BitLy = BitLyClient(user, api)
        BitList = BitLy.cut(long_url, True)
        print BitList["ShortUrl"]