0.2.0 • Published 2 months 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
2 months ago
0.1.8
2 months ago
0.1.7
2 months ago
0.1.4
2 months ago
0.1.3
2 months ago
0.1.6
2 months ago
0.1.5
2 months ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago
0.0.10
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago
0.0.0-development
2 years ago