Discussions

Ask a Question
Back to All

Documentation is not correct or outdated ?

To get all assets i see below example in the documentation:
https://developer.gomotive.com/reference/list-all-the-company-assets

It tells me to install this package:
npx api install "@motive-20/v1.0#5pqh916ma2p5eau"

And then i can run below code

import motive20 from '@api/motive-20';

motive20.auth('PgXHeOH4fo9p0PH9hFx7qCN07zESx0Q8ysrzrAqOLZQ');
motive20.listAllTheCompanyAssets({exact_match: 'false', per_page: '25', page_no: '1'})
.then(({ data }) => console.log(data))
.catch(err => console.error(err));

2 problems:

  1. It says i need an api key in the documentation
  2. the package required to install is broken the command does not work and gives the following error in multiple environments:
    (base) yanivbenhaim@Yanivs-MBP eld % npx api install "@motive-20/v1.0#5pqh916ma2p5eau"
    ? What language would you like to generate an SDK for? › - Use arrow-keys. Return to submit.
    TypeScript
    ✔ What language would you like to generate an SDK for? › JavaScript
    ✔ How are your project imports and exports structured? › ECMAScript Modules
    ✔ Fetching your API
    ✖ Generating your SDK
    Sorry, this OpenAPI definition does not have any operation paths to generate an SDK for.

In a previous question i asked where to get an api key but i was told i do not need one.
Can you please just give me a simple code snippet or post man collection that shows me how i can update or get driver information from our server