using python to call api's

Avatar

Avatar
Level 1
ChrisS
Level 1

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
ChrisS
Level 1

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
View profile
ChrisS
Level 1

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
Level 1
micahw51004915
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Level 1
micahw51004915
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
micahw51004915
Level 1

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