Future Board MicroPython Programming - 12 urequests & ujson

 Go back to Product Documents Navigation 

 Go back to Future Board Documents Navigation 

 

* Please refer to official documentation for urequests and ujson for more details.

 

Import FutureBoard Library

Import the Library to make use of its functions.

from future import *

 

12: urequests & ujson

Import urequests and ujson

import urequests
import ujson

1. Get Data from API

r=urequests.get(api_url)
data=ujson.loads(r.content)

Paste the GET request url of the API into the api_url parameter.
Extract the data from parameter data.

 

If you have any question, please feel free to contact us at Discord, we will always be there to help.

 

KittenBot Team

 

 Go back to Product Documents Navigation 

 Go back to Future Board Documents Navigation 

Leave a comment

Please note, comments need to be approved before they are published.