Use cURL
The examples within this document use cURL to demonstrate how to access the Oracle Narrative Reporting REST APIs. cURL is an open source, command-line tool for transferring data with URL syntax, supporting various protocols including HTTP and HTTPS.
Step 1: Install cURL
To connect securely to the REST server, you must install a version of cURL that supports SSL.
To install cURL on your system:
For more information, see Installing the cURL Command-Line Tool on Windows.
Step 2: Set Environment Variable for cURL
When running cURL from a Windows command shell, you must provide an SSL certificate authority (CA) file or bundle to authenticate against the Verisign CS certificate.
You are now ready to send REST requests to the Oracle Narrative Reporting Cloud Service instance using cURL.
Step 3: Invoke cURL
Invoke cURL and specify one or more of the command-line options defined in the following table, as required, to direct its execution.
cURL Option | Description |
---|---|
|
Specifies the request body, or data, either directly or by referring to a JSON file on the local machine. |
|
Specifies form data, either directly or by referring to a JSON file on the local machine. |
|
Defines a request header. |
|
Displays response header information. |
|
Specifies the user name and password for the Oracle Applications Cloud Service account. |
|
Indicates the type of request (for example, GET, POST, and so on). |
Tip:
The cURL examples in this guide are written in cURL for Linux syntax. If you are using cURL for Windows, replace single quotes with double quotes.