0.6.6 • Published 27 days ago

@3dverse/api v0.6.6

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
27 days ago

3dverse API library

Wrapper library for the 3dverse REST API: https://docs.3dverse.com/api/.

Usage

Install

npm i @3dverse/api

Import

import * as api3dverse from '@3dverse/api';

or

import { registerUser } from '@3dverse/api';

Authentication

Only use the API key on the server.

import { setApiKey, registerUser } from '@3dverse/api';


setApiKey(MY_3DVERSE_API_KEY);

async () => {
    const { user_id } = await registerUser({ username: 'my_username' });
}

For client-side request, you can authenticate with the User Token.

import { setUserToken, uploadSourceFiles } from '@3dverse/api';

setUserToken(MY_USER_TOKEN);

async () => {
    const upload = await uploadSourceFiles({
        folder_id: 'my_folder_id',
        body: formData
    });
}
0.6.6

27 days ago

0.6.5

2 months ago

0.6.4

3 months ago

0.6.3

4 months ago

0.6.2

6 months ago

0.6.1

6 months ago

0.5.2

6 months ago

0.6.0

6 months ago

0.5.1

6 months ago

0.4.5

7 months ago

0.5.0

7 months ago

0.3.6

10 months ago

0.4.4

9 months ago

0.3.5

10 months ago

0.4.1

9 months ago

0.3.2

10 months ago

0.4.0

9 months ago

0.4.3

9 months ago

0.3.4

10 months ago

0.4.2

9 months ago

0.3.3

10 months ago

0.3.0

11 months ago

0.3.1

11 months ago

0.2.1

1 year ago

0.2.0

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.4

12 months ago

0.1.2

1 year ago

0.1.0

1 year ago

0.1.1

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago