Skip to main content

API

Use CURL library to get token and lists in Magento2

'cURL' is a command-line tool that lets you transmit HTTP requests and receive responses from the command line or a shell script. It is available for Linux distributions, Mac OS X, and Windows. To use cURL to run your REST web API call, use the cURL command syntax to construct the command. To create the endpoint in the call, append the REST URI that you constructed in Construct a request to this URL: https:////rest/ To pass the customer data object in the POST call payload, specify a JSON or XML request body on the call.