Quickstart
This guide aims to get you up and running and familiar with the API in about 15 minutes. We'll teach you how to setup your first user and how to create your first item.
Get the Meeco CLI
Download the Meeco CLI and follow the installation instructions in the Meeco CLI section of the documentation.
The first thing to do after setup is to create an .environment.yaml
file that allows you to connect to the sandbox environment.
Create a User
Create your first user - let's call them "Alice".
The command above does a lot, if you want to learn what happens behind the scenes look at the guide about Setting up Access. The end result is captured in a file .alice.yaml
that holds the necessary information about the user that allows us to talk to the API in the next steps.
In the next calls, you'll see an argument added with -a .alice.yaml
Login as a User
You can use the following command to login as the user you just created or if you are returning to a session. This command will re-create the tokens if they are expired. It outputs an Authorization config file for use with future commands.
Get info about a User
You can also get the information about a user by using the following command. This command will return the user's id and other user info like their dek.
Creating an Item
Items in the Meeco API require you to specify a template. This template can be seen as a contract with a number of predefined fields (which we call slots). To get all available templates execute the following command
Let's create a vehicle
item. To prepare this we can run the create config command
First, let's have a look at what kind of information the template holds.
Then, create the config file:
The next step is to edit the file to contain some data.
Based on this configuration, we can create a new vehicle in Alice's digital vault.
Congratulations, you have now created your first item in the Vault.
From here you can either keep learning about the Meeco Platform and tools, or jump into the Connections and Sharing tutorial to keep using the CLI to make a connection with another user and share the item you created above.
Last updated