Advertisement
irokemr

Autorización/Authorization python

Dec 10th, 2021 (edited)
536
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. import json
  2. import requests
  3.  
  4.  
  5.  
  6.  
  7.  
  8. codigo = input("Codigo de la isla: ")
  9.  
  10. headers = {'Authorization': "AQUI LA KEY"} #Consigue una KEY registrandote en la siguiente página web: https://dashboard.fortniteapi.io/
  11. response = requests.get('https://fortniteapi.io/v1/creative/island?code=' f"{codigo}", headers=headers)
  12. imagen = response.json()['island']['image']
  13.  
  14. print(imagen)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement