0.2.0 • Published 1 year ago
@m-media/npm-cartes-io v0.2.0
npm-cartes-io
Install
npm i @m-media/npm-cartes-io
Usage
import cartes from "npm-cartes-io";
// Maps
cartes.maps().get();
cartes.maps().with(['markers']).get();
cartes.maps().search(query);
const map = cartes.maps().create(data);
// You can create a map from a file (requires auth and permissions)
const map = cartes.maps().createFromFile(file);
cartes.maps(map.uuid).get();
cartes.maps(map.uuid).related().get();
cartes.maps(map.uuid, map.token).update(data);
cartes.maps(map.uuid, map.token).delete();
// Markers
cartes.maps(map.uuid).markers().get();
const marker = cartes.maps(map.uuid).markers().create(data);
// You can create markers from a file (requires auth and permissions)
const marker = cartes.maps(map.uuid).markers().createFromFile(file);
cartes.maps(map.uuid).markers(marker.id, marker.token).delete();
// Categories
cartes.categories().get();
cartes.categories().search(query);
// Authentication
cartes.setApiKey(apiKey);
// User
cartes.me().get();
cartes.me().update(data);
// Users
cartes.users().get();
cartes.users(userId).get();
0.2.0
1 year ago
0.1.8
1 year ago
0.1.7
1 year ago
0.1.4
1 year ago
0.1.3
1 year ago
0.1.6
1 year ago
0.1.5
1 year ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago
0.0.10
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago
0.0.0-development
3 years ago