Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

using python to call api's

ChrisS
Level 2
Level 2

Hello

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

Thank you

1 Reply
micahw51004915
Level 1
Level 1

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