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
BedrockMission!

Learn More

View all

Sign in to view all badges

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