Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

digiLab-ai/twinLab-api-httpie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTPIE twinLab API

This is how one can use the twinLab API directly from the terminal using the HTTPie (brew install httpie) command line tool.

First, you need to set up the environment variables in the top-level .env file. You can copy the .env.example file as a template:

cp .env.example .env
open .env

If you are running locally, you need to set the TWINLAB_USERNAME and TWINLAB_SECRET variables. If you are running through RapidAPI then you need to set the TWINLAB_KEY and TWINLAB_HOST variables.

API

All the endpoints are wrapped into functions in the api.sh file. You can source this file directly from your terminal to use the functions:

source api.sh

The scripts in the examples folder demonstrate how to use these functions.

Admin commands

User commands

Information

Profile

Dataset management

Model management

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages