Digia Academy
Digia StudioDiscordLinkedIn
  • Introduction
    • FAQs
  • What's New
    • 2024
      • March
  • DIGIA STUDIO INTRODUCTION
    • Dashboard
    • Builder Tool
      • Navigation Menu
      • Tool Bar
      • Pages and Widgets Panel
      • Canvas Area
      • Properties Panel
    • Creating a New Project
    • Creating new Pages
    • Working with Widget Tree
    • Build Your First App
      • Hello World
      • Bytes App
        • Onboarding
        • Defining API Calls
        • Courses
        • Articles
        • Viewing your App
    • SDK Integration
      • Insert Single Pages from Digia Studio
  • Actions
    • Call API Rest Action
    • Call Rest API
    • Pop Current
    • Pop to Route
    • openUrl
    • Go To Page
    • Post Message
    • Set Page State
    • Wait (delay)
    • Drawer
    • Toast
    • Open Dialog
    • Share
    • Copy to Clipboard
  • Operations
    • API Call
    • Operators
      • Json Operators
      • Logical Operators
      • Date Time Operators
      • Math Operators
      • String Operations
  • BUILDING UI
    • Widgets
      • Form Widgets
        • PinField
        • Calendar
        • Text Form Field
      • Base Widgets
        • Animated Button
        • Check Box
        • Video Player
        • Spacer
        • Stack
        • Wrap
        • Text
        • Avatar
        • Rich Text
        • Image
        • Button
        • Icon
        • Switch
        • Sized Box
        • HtmlView
        • Lottie Animation
        • Linear Progress Bar
        • YouTube Player
        • Circular Progress Bar
      • Layout Widgets
        • ListView
        • Web View
        • Future Builder
        • Conditional Builder
        • Stream Builder
        • GridView
        • Column
        • Row
        • Container
        • Expandable
        • Divider (Horizontal)
        • Divider (Vertical)
        • Carousel
      • Persistent Footers Widgets
        • NavigationBar Widget
      • Page Widgets
        • Stepper Widget
        • Scaffold Widget
        • Paginated Listview Widget
        • TabView
        • AppBar
      • Widget Commonalities
    • Event Handlers
  • Theme
    • Colors
    • Typography
  • DATA AND BACKEND
    • API Calls
      • Setting up API Calls
      • Create API Calls
      • Import API From Curl
  • DEPLOYING YOUR APP
    • Deployment
    • Release History
  • Settings
    • App Settings
    • App Assets
    • Media Assets
  • JARGON
    • Data integration
Powered by GitBook
On this page
  • Creating cURL API Calls
  • Fetch Data from API
  1. DATA AND BACKEND
  2. API Calls

Import API From Curl

PreviousCreate API CallsNextDeployment

Last updated 1 month ago

cURL, a widely used command-line tool, facilitates HTTP requests directly from the command line, employing a familiar syntax prevalent in the API developer community. It enables seamless interaction when testing web applications or APIs. If you have multiple cURL commands scattered across different locations.

Creating cURL API Calls

To use a cURL API in your app, first, you have to create the API Call.

Follow the steps below to create a cURL API Call:

  1. Select API Calls from the left .

  2. Click on the Import from curl button .

  3. Enter the cURL API call name.

  4. Enter the cURL link of the service you want to access.

Adding of the cURL url and click on the Import

Fetch Data from API

To start using the API, first, go to the page where you can add it. Then, add a Future Builder Widget .In the Future Builder widget select type as API and your curl API in data source.

Now, select the widget where you want to fetch the data. Then just use currentItem or elementAt method to fetch the data

Following the previous step, proceed to select the widget intended for data retrieval from the JSON file and subsequent display on the dashboard.

Navigation Menu