ORDO
  • What is ORDO
  • Articles
  • Utility
    • NFT Builder
    • Blueprints
    • Whitelist Management
    • 2FA / Multisig Vaults
    • Autonomous Distribution Contracts
  • Documentation
    • FireNode
      • Getting Started
      • Functions
        • /precheck
        • /add
        • /get
Powered by GitBook
On this page
  • Description
  • Sample GET Request
  • Failed Responses
  1. Documentation
  2. FireNode
  3. Functions

/get

Description

The view can be used by simply pasting the full url into a browser window or if using a GET request within your codebase

Sample GET Request

After uploading a file a successful response will include a url. That url contains the locator ID in it. To programmatically send a request you simply need to make a GET request to our api base url http://ipfs.ordo.so/api/v1/ipfs/ with the locator id appended to the end of it. If you are storing the full url in your database, you simply can use that url in the GET request. Below is a basic example using javascript.

Authentication is shown in the example below but is NOT required for most users. Only files marked as private during the upload require authentication. Currently this feature is not enabled during our beta testing without prior approval.

var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer <YOUR_API_TOKEN>");
//The Bearer token is ONLY required IF you have privacy enabled on your files. For most users during beta testing this feature is disabled. 
var requestOptions = {
  method: 'GET',
  headers: myHeaders,
  redirect: 'follow'
};

fetch("https://ipfs.ordo.so/api/v1/ipfs/<LOCATOR_ID>", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

Failed Responses

All failed responses will receive a 404 response.

Previous/add

Last updated 2 years ago