This forum is now read-only. Please use our new forums at discuss.codecademy.com.

How to use APIs with Python Forum

View Course » View Exercise

2758 points
Adb822a55cf65264e0324a23a7d8ee5a?s=140&d=retro
Submitted by
Alfonso Hernandez
over 2 years ago

Is deleting a tweet technically a DELETE request?

From the assignment:

[...] when you delete a tweet, there goes a DELETE request.

I think deleting a tweet sets an is_visible flag to False, so your tweet still exists but it's just not visible anymore. If that's the case, then "deleting" a tweet is more like a PUT request.


0 votes

permalink

import requests


kittens = requests.get('http://placekitten.com/')
text = kittens


print kittens.text[559:1000]

212 points
E496244cf0eb7b6bd9d19e9f52615959?s=140&d=retro
Submitted by
bhartirawatbr
about 2 years ago