Please change the category to Off Topic ..
If you want to create extension to communicate with apis you can:
see here:
https://www.baeldung.com/java-http-request
And here:
// -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2009-2011 Google, All Rights reserved
// Copyright 2011-2022 MIT, All rights reserved
// Released under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
package com.google.appinventor.components.runtime;
import static android.Manifest.permission.INTERNET;
import static android.Manifest.permission.READ_EXTERNAL_STORAGE;
import static android.Manifest.permission.WRITE_EXTERNAL_STORAGE;
import android.app.Activity;
import android.text.TextUtils;
import android.util.Log;
import androidx.annotation.VisibleForTesting;
This file has been truncated. show original
And also here:
Also you can use the web component blocks to communicate with apis using post,get and put blocks without using any extension..You can use json utils extension as @Yash_Agarwal_376 said.. See here:
And here for json utils extension:
Extension JsonUtils
[image]
Description
This extension is used to work with JSON string.
You can parse values, objects, and arrays.
Compared to other extensions it’s easy and contains many features.
See blocks images and continue reading for better understanding.
Blocks
[image]
ArrayLength: Return length of the array (you can use if needed for iteration)
GetArray: Returns array as string
More Detials
Download
4 Likes