using python to call api's

Avatar

Avatar

ChrisS

Avatar

ChrisS

ChrisS

03-10-2015

Hello

Has anyone used python to call the API's from Rights Management?

Thank you

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

micahw51004915

Avatar

micahw51004915

micahw51004915

07-12-2017

How to use APIs with Python:

from urllib2 import Request, urlopen, URLError

request = Request('http://placekitten.com/')

try:

    response = urlopen(request)

    kittens = response.read()

    print kittens[559:1000]

except URLError, e:

    print 'No kittez. Got an error code:', e