Quick Start
You can interact with the API through HTTP requests from any language. In this section, we discuss the ways to access quantum entropy using QxEaaS.
Fetching the access token from QxEAAS is the first step before utilizing the entropy for any use case.
To use QxEaaS's Quantum Entropy, you need an access token. Here are the steps for getting the access token in QxEaaS's platform:
Generate an Access Token
- Navigate to the API key page in the dashboard here
- Assign a name to the token to help you distinguish between different tokens.
- Select the expiration period. This determines when the token will expire and needs to be replaced.
- Click the “Generate token” button.
The next step is to prepare the API tokens such that any application can fetch the quantum entropy successfully.
Setting up Environmental Files for API Token
- Create a .env file in the project environment,
- Place relevant data inside it. In our case, store the API Token.
ACCESS_TOKEN=your token here - Load the .env file.
- Assign to local variables.
Code Snippets for Popular Languages :
Python :
JavaScript :
Rust :