-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Summary * Add API Key page * Update code snippets to only show curl, python and Node ---
- Loading branch information
Showing
5 changed files
with
91 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
id: api-keys | ||
--- | ||
|
||
import Tabs from "@theme/Tabs"; | ||
import TabItem from "@theme/TabItem"; | ||
import constants from "@site/core/tabConstants"; | ||
|
||
# Manage API keys | ||
|
||
## Get your LastMile API Key | ||
|
||
- Log in or sign up at https://lastmileai.dev | ||
- Navigate to https://lastmileai.dev/apikeys | ||
- Click `+ New Key` | ||
|
||
![LastMile API Key](/img/lastmile-api-key.png) | ||
|
||
## Use your LastMile API Key | ||
|
||
## Managing External API | ||
|
||
### Configure Weights & Biases API token | ||
|
||
![PyPI](https://img.shields.io/pypi/v/lastmile?label=lastmile) | ||
|
||
The [LastMile Python library](https://pypi.org/project/lastmile/) provides pythonic access to the LastMile REST API from any Python 3.7+ application. | ||
|
||
#### Installation | ||
|
||
```bash | ||
# install from PyPI | ||
pip install lastmile | ||
``` | ||
|
||
#### Usage | ||
|
||
```python | ||
import os | ||
from lastmile import Lastmile | ||
|
||
client = Lastmile( | ||
# This is the default and can be omitted | ||
bearer_token=os.environ.get("LASTMILE_API_TOKEN"), | ||
) | ||
|
||
dataset = client.datasets.create() | ||
print(dataset.dataset) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters