wamclient
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Werk Aan De Muur - API

GitHub release (latest by date) NPM Version GitHub Release Date GitHub code size in bytes GitHub GitHub last commit GitHub issues

Werk aan de Muur - API client for Deno/Node

This client is intended for limited use at the backend. It is not intended for use in the browser.

Inspired by the Wordpress Plugin

Table of Contents

Features

  • Request data from the Werk Aan De Muur API
  • Get artworks for a user
  • Get paginated results
  • Get artworks for a specific album

Installation

Deno

import { WAMClient } from 'https://deno.land/x/wamclient/mod.ts';

Node

import { WAMClient } from 'wamclient';

Example

import { WAMClient, Medium, Size } from 'https://deno.land/x/wamclient/mod.ts';

const artistID = 000000; // Your artist ID
const apiKey = "<api_key>"; // Your API key

const client = new WAMClient(artistID, apiKey);

const authenticated = await client.authenticationTest();

// Get all artworks
const artworks = await client.getArtworks();

// Get artworks for a specific album
const albumArtworks = await client.getArtworksByAlbumId(123456);

// Get paginated results
const paginatedArtworks = await client.getArtworksPage(1);

// Get a single artwork
const artwork = await client.getArtworkById(123456);

// Apply filters
const filteredArtworks = await client.getArtworks({
  medium: Medium.Canvas,
  size: Size.XLarge,
});

Development

  • [ ] Publish NPM module

License

MIT


"Buy Me A Coffee"

Package Sidebar

Install

npm i wamclient

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

23.6 kB

Total Files

26

Last publish

Collaborators

  • j3lte